Skip to content

Commit

Permalink
add IsPlayer to creature snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
baughj committed Dec 17, 2023
1 parent edcf716 commit 94577b7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hybrasyl/Objects/CreatureSnapshot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,6 @@ public User GetUserObject()
return Game.World.WorldState.TryGetWorldObject(Parent, out User user) ? user : null;
}

public bool IsPlayer => GetUserObject() != null;

}

0 comments on commit 94577b7

Please sign in to comment.