Пример #1
0
 public TransformSystem(EntityManager em, EntitySystemManager esm)
     : base(em, esm)
 {
     EntityQuery = new EntityQuery();
     EntityQuery.AllSet.Add(typeof(TransformComponent));
     EntityQuery.Exclusionset.Add(typeof(SlaveMoverComponent));
 }
Пример #2
0
 public InventorySystem(EntityManager em, EntitySystemManager esm)
     : base(em, esm)
 {
     EntityQuery = new EntityQuery();
     EntityQuery.OneSet.Add(typeof(InventoryComponent));
     EntityQuery.OneSet.Add(typeof(EquipmentComponent));
     EntityQuery.OneSet.Add(typeof(HumanHandsComponent));
 }
Пример #3
0
 public InventorySystem(EntityManager em, EntitySystemManager esm)
     : base(em, esm)
 {
     EntityQuery = new EntityQuery();
     EntityQuery.OneSet.Add(typeof (InventoryComponent));
     EntityQuery.OneSet.Add(typeof (EquipmentComponent));
     EntityQuery.OneSet.Add(typeof (HumanHandsComponent));
 }
Пример #4
0
 public InventorySystem()
 {
     componentFactory = IoCManager.Resolve <IComponentFactory>();
     EntityQuery      = new EntityQuery();
     EntityQuery.OneSet.Add(typeof(InventoryComponent));
     EntityQuery.OneSet.Add(typeof(EquipmentComponent));
     EntityQuery.OneSet.Add(typeof(HumanHandsComponent));
 }
Пример #5
0
 public PhysicsSystem(EntityManager em, EntitySystemManager esm)
     : base(em, esm)
 {
     EntityQuery = new EntityQuery();
     EntityQuery.AllSet.Add(typeof(PhysicsComponent));
     EntityQuery.AllSet.Add(typeof(VelocityComponent));
     EntityQuery.AllSet.Add(typeof(TransformComponent));
     EntityQuery.Exclusionset.Add(typeof(SlaveMoverComponent));
     EntityQuery.Exclusionset.Add(typeof(PlayerInputMoverComponent));
 }
Пример #6
0
 public InputSystem(EntityManager em, EntitySystemManager esm)
     : base(em, esm)
 {
     EntityQuery = new EntityQuery();
     EntityQuery.OneSet.Add(typeof (KeyBindingInputComponent));
 }
Пример #7
0
 public ParticleSystem(EntityManager em, EntitySystemManager esm)
     : base(em, esm)
 {
     EntityQuery = new EntityQuery();
     EntityQuery.OneSet.Add(typeof(ParticleSystemComponent));
 }
Пример #8
0
 public TestSystem(EntityManager em, EntitySystemManager esm)
     : base(em, esm)
 {
     EntityQuery = new EntityQuery();
     EntityQuery.OneSet.Add(typeof (BasicItemComponent));
 }
Пример #9
0
 public InventorySystem(EntityManager em, EntitySystemManager esm)
     : base(em, esm)
 {
     EntityQuery = new EntityQuery();
 }