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