Example #1
0
 public virtual void Destruct()
 {
     m_combat_client = null;
     m_logic_world   = null;
     m_scheduler.Destruct();
     m_scheduler = null;
     m_render_entity_manager.Destruct();
     m_render_entity_manager = null;
 }
Example #2
0
        public void Initialize()
        {
            CombatStartInfo csi = new CombatStartInfo();

            csi.m_level_id   = 1;
            csi.m_world_seed = 1;
            m_combat_client  = new CombatClient(new MyCombatFactory());
            m_combat_client.Initializa(TEST_LOCAL_PLAYER_PSTID, csi);
            m_combat_client.AddPlayer(TEST_LOCAL_PLAYER_PSTID);
            m_init = true;
        }
Example #3
0
        public virtual void Initialize(CombatClient combat_client, LogicWorld logic_world)
        {
#if ALLOW_UPDATE
            AddComponent <RenderWorldEveryFrameUpdater>(true);
#endif
            m_current_time             = FixPoint.Zero;
            m_combat_client            = combat_client;
            m_logic_world              = logic_world;
            m_render_entity_manager    = new RenderEntityManager(logic_world, this);
            m_scheduler                = new TaskScheduler <RenderWorld>(this);
            m_render_message_processor = CreateRenderMessageProcessor();
        }
Example #4
0
        public override void Initialize(CombatClient combat_client, LogicWorld logic_world)
        {
            base.Initialize(combat_client, logic_world);
            m_camera_controller = new CameraController(this);
#if UNITY_EDITOR
            m_grid_graph = GetLogicWorld().GetDefaultSceneSpace().m_graph;
            if (m_grid_graph != null)
            {
                InitializeDrawGrid();
                GameGlobal.Instance.m_draw_gizmos_callback += DrawGridAndPath;
            }
#endif
        }