Пример #1
0
        public Core(Game game)
            : base(game)
        {
            m_performanceMonitor = new PerformanceMonitor(game);

            Game.Services.AddService(typeof(Core), this);
            Game.Components.Add(this);

            m_objectBuilder = new ObjectBuilder.ObjectBuilder(game);
            m_logicService = new LogicService(game);
            m_macroService = new MacroService(game);
            m_resourceService = new ResourceService(game);
            m_stateMachineService = new StateMachine.StateMachineService(game);
        }
Пример #2
0
 private String getMacros(MacroService macroService)
 {
     String s = "";
     foreach (XnaScrapId macro in macroService.RegisteredMacros.Keys)
     {
         s += macro.ToString() + NetCtrlService.Seperator;
     }
     // we have to return something
     if (s.Length == 0)
     {
         s = NetCtrlService.EmptyString;
     }
     return s;
 }
Пример #3
0
 public RegisterMacro(Game game)
 {
     m_game = game;
     if (game != null)
     {
         m_macroService = game.Services.GetService(typeof(MacroService)) as MacroService;
         m_resourceService = game.Services.GetService(typeof(IResourceService)) as IResourceService;
     }
 }
Пример #4
0
        private String getMacro(MacroService macroService)
        {
            String s = "";

            return s;
        }
Пример #5
0
 public CallMacro(Game game)
 {
     m_game = game;
     if (game != null)
     {
         m_macroService = game.Services.GetService(typeof(MacroService)) as MacroService;
     }
 }