示例#1
0
        public static void Setup()
        {
            IsSetup = true;
            if (Instance == null)
            {
                return;
            }
            NodeFilter <VisibleNode> .New(VisibleNode.GetTypes());

            NodeFilter <CharacterNode> .New(CharacterNode.GetTypes());

            Get <AnimatorSystem>();
            Get <CameraSystem>();
            Get <CollisionCheckSystem>();
            Get <CommandSystem>();
            Get <CollisionEventSystem>();
            Get <DespawnEntitySystem>();
            Get <DistanceSystem>();
            Get <EntityModifierSystem>();
            Get <FactionSystem>();
            Get <ItemSceneSystem>();
            Get <MoverSystem>();
            Get <PhysicsMoverSystem>();
            Get <RadiusSystem>();
            Get <TurnBasedSystem>();
            Get <CharacterRectSystem>();
            Get <SensorSystem>();
            Get <EntityUIPoolSystem>();
            EcsDebug.RegisterDebugCommands();
            //TODO: default setup here
        }
示例#2
0
 public PathfinderMoverSystem()
 {
     _grid = World.Get <PathfindingSystem>().Grid;
     NodeFilter <PathfindMoverNode> .New(PathfindMoverNode.GetTypes());
 }
示例#3
0
 public SensorSystem()
 {
     NodeFilter <SensorDetectingNode> .New(SensorDetectingNode.GetTypes());
 }