Beispiel #1
0
 public CreaturePlaceToTrigger(Entity entity, int triggerIdx, bool orientByTrigger = true, bool moveToGround = true)
 {
     Entity          = entity;
     TriggerIdx      = triggerIdx;
     OrientByTrigger = orientByTrigger;
     MoveToGround    = moveToGround;
 }
Beispiel #2
0
 public static void Register(DefaultEcs.Entity handle, Entity entity)
 {
     if (entity)
     {
         Entities[handle] = entity;
     }
     else
     {
         Entities.Remove(handle);
     }
 }
Beispiel #3
0
 public static Entity GetWithHandle(DefaultEcs.Entity handle) => Entities[handle];
Beispiel #4
0
 public NPCMoveSystem(Entity entity, Mode waypointMode, int waypointCategory)
 {
     Entity           = entity;
     WaypointMode     = waypointMode;
     WaypointCategory = waypointCategory;
 }
Beispiel #5
0
 internal Entity(DefaultEcs.Entity handle)
 {
     Handle = handle;
     CoreECS.Register(Handle, this);
     Events = new EntityEvents();
 }