Exemplo n.º 1
0
        public override void RegisterSystems()
        {
            base.RegisterSystems();
            TransfromSynchronizationSystemHelper.RegisterClientSystems(World);
            PlayerLifecycleConfig.RegisterClientSystems(World);

            // Entity initialization systems
            World.GetOrCreateManager <GameObjectInitializationSystem>();
            World.GetOrCreateManager <ArchetypeInitializationSystem>();

            // SpatailOS systems
            World.GetOrCreateManager <DisconnectSystem>();

            // Client test event systems
            World.GetOrCreateManager <ProcessColorChangeSystem>();

            // Client player movement systems
            World.GetOrCreateManager <LocalPlayerInputSync>();
            World.GetOrCreateManager <InitCameraSystem>();
            World.GetOrCreateManager <FollowCameraSystem>();

            // Client player UI systems
            World.GetOrCreateManager <InitUISystem>();
            World.GetOrCreateManager <UpdateUISystem>();

            // Client player commands system
            World.GetOrCreateManager <PlayerCommandsSystem>();

            // Metric sending system
            World.GetOrCreateManager <MetricSendSystem>();
        }
Exemplo n.º 2
0
        public override void RegisterSystems()
        {
            base.RegisterSystems();
            TransfromSynchronizationSystemHelper.RegisterServerSystems(World);
            PlayerLifecycleConfig.RegisterServerSystems(World);

            // Entity initialization systems
            World.GetOrCreateManager <GameObjectInitializationSystem>();
            World.GetOrCreateManager <ArchetypeInitializationSystem>();

            // SpatailOS systems
            World.GetOrCreateManager <DisconnectSystem>();

            // Server cube movement systems
            World.GetOrCreateManager <CubeMovementSystem>();

            // Server player movement systems
            World.GetOrCreateManager <MoveLocalPlayerSystem>();

            // Server test event systems
            World.GetOrCreateManager <TriggerColorChangeSystem>();

            // Server test command systems
            World.GetOrCreateManager <ProcessLaunchCommandSystem>();
            World.GetOrCreateManager <ProcessRechargeSystem>();

            // Metric sending system
            World.GetOrCreateManager <MetricSendSystem>();
        }
Exemplo n.º 3
0
 public static void AddGameLogicSystems(World world)
 {
     AddLifecycleSystems(world);
     TransformSynchronizationSystemHelper.AddSystems(world);
     PlayerLifecycleConfig.AddServerSystems(world);
     world.GetOrCreateManager <CubeMovementSystem>();
     world.GetOrCreateManager <MoveLocalPlayerSystem>();
     world.GetOrCreateManager <TriggerColorChangeSystem>();
     world.GetOrCreateManager <ProcessLaunchCommandSystem>();
     world.GetOrCreateManager <ProcessRechargeSystem>();
     world.GetOrCreateManager <MetricSendSystem>();
     world.GetOrCreateManager <ProcessScoresSystem>();
     world.GetOrCreateManager <CollisionProcessSystem>();
 }
Exemplo n.º 4
0
 public static void AddClientSystems(World world)
 {
     AddLifecycleSystems(world);
     TransformSynchronizationSystemHelper.AddSystems(world);
     PlayerLifecycleConfig.AddClientSystems(world);
     world.GetOrCreateManager <ProcessColorChangeSystem>();
     world.GetOrCreateManager <LocalPlayerInputSync>();
     world.GetOrCreateManager <InitCameraSystem>();
     world.GetOrCreateManager <FollowCameraSystem>();
     world.GetOrCreateManager <InitUISystem>();
     world.GetOrCreateManager <UpdateUISystem>();
     world.GetOrCreateManager <PlayerCommandsSystem>();
     world.GetOrCreateManager <MetricSendSystem>();
 }