public EquipmentSystem() { NodeFilter <EquipmentNode> .Setup(EquipmentNode.GetTypes()); EntityController.RegisterReceiver(new EventReceiverFilter(this, new[] { typeof(Equipment) })); }
public SensorSystem() { NodeFilter <SensorDetectingNode> .Setup(SensorDetectingNode.GetTypes()); _sensorNodes = EntityController.GetNodeList <SensorDetectingNode>(); NodeFilter <UnitySensorNode> .Setup(UnitySensorNode.GetTypes()); _unitySensorNodes = EntityController.GetNodeList <UnitySensorNode>(); EntityController.RegisterReceiver(new EventReceiverFilter(this, new[] { typeof(SensorTargetsComponent) })); }
public MoverSystem() { NodeFilter <ForwardMoverNode> .Setup(ForwardMoverNode.GetTypes()); _forwardMovers = EntityController.GetNodeList <ForwardMoverNode>(); NodeFilter <RotateToNode> .Setup(RotateToNode.GetTypes()); _rotators = EntityController.GetNodeList <RotateToNode>(); NodeFilter <SimpleMoverNode> .Setup(SimpleMoverNode.GetTypes()); _simpleMovers = EntityController.GetNodeList <SimpleMoverNode>(); NodeFilter <ArcMoverNode> .Setup(ArcMoverNode.GetTypes()); _arcMovers = EntityController.GetNodeList <ArcMoverNode>(); }
public static void Setup() { IsSetup = true; if (Instance == null) { return; } NodeFilter <VisibleNode> .Setup(VisibleNode.GetTypes()); NodeFilter <CharacterNode> .Setup(CharacterNode.GetTypes()); NodeFilter <CollidableNode> .Setup(CollidableNode.GetTypes()); Get <AnimatorSystem>(); Get <CommandSystem>(); Get <CollisionCheckSystem>(); Get <DespawnEntitySystem>(); Get <DistanceSystem>(); Get <FactionSystem>(); Get <ItemSceneSystem>(); Get <ModifierSystem>(); Get <MoverSystem>(); Get <PhysicsMoverSystem>(); Get <CharacterRectSystem>(); Get <SensorSystem>(); Get <EntityUIPoolSystem>(); var assemblies = AppDomain.CurrentDomain.GetAssemblies(); for (int a = 0; a < assemblies.Length; a++) { var types = assemblies[a].GetTypes(); for (int t = 0; t < types.Length; t++) { var type = types[t]; if (type.IsDefined(typeof(AutoRegisterAttribute), false)) { CreateSystem(type); } } } }
public ContainerSystem() { NodeFilter <ContainerItemNode> .Setup(ContainerItemNode.GetTypes()); }
public FlightNpcSystem() { NodeFilter <NpcFlyingNode> .Setup(NpcFlyingNode.GetTypes()); _flyingList = EntityController.GetNodeList <NpcFlyingNode>(); }
public DirectionalSpriteSystem() { NodeFilter <DirectionalSpriteNode> .Setup(DirectionalSpriteNode.GetTypes()); _directionalComponents = EntityController.GetNodeList <DirectionalSpriteNode>(); }
public ActionSystem() { NodeFilter <ActionUsingNode> .Setup(ActionUsingNode.GetTypes()); }
public ProjectileSystem() { NodeFilter <ProjectileNode> .Setup(ProjectileNode.GetTypes()); }
public FlightPhysicsSystem() { NodeFilter <FlyingNode> .Setup(FlyingNode.GetTypes()); _flyingList = EntityController.GetNodeList <FlyingNode>(); }
public CollisionCheckSystem() { NodeFilter <CollisionCheckForwardNode> .Setup(CollisionCheckForwardNode.GetTypes()); _list = EntityController.GetNodeList <CollisionCheckForwardNode>(); }
public MapSystem() { NodeFilter <UnitOccupyingCellNode> .Setup(UnitOccupyingCellNode.GetTypes()); _nodeList = EntityController.GetNodeList <UnitOccupyingCellNode>(); }