Inheritance: MVCSContext
コード例 #1
0
        public static void InstallGameHooks()
        {
            Log.Trace ("Entering EntryPoint InstallGameHooks().");

            GameContext = new GameContext();

            Log.Trace ("Installing hooks...");
            InstallHooks (GameContext);
            Log.Trace ("Attaching transformers...");
            AttachTransformers (GameContext);
            Log.Trace ("Attaching interpreters...");
            AttachInterpreters (GameContext);
            Log.Trace ("Creating states...");
            CreateStates (GameContext);
            Log.Trace ("Creating providers...");
            CreateProviders (GameContext);
            Log.Trace ("Creating managers...");
            CreateManagers (GameContext);

            Log.Trace ("Exiting EntryPoint InstallGameHooks().");
        }
コード例 #2
0
 private static void InstallHooks(GameContext context)
 {
     context.GraphicsHook = new Direct3D9Hook();
     context.GraphicsHook.Install();
     //context.GraphicsHook.InstallOnly (Direct3D9DeviceFunctions.CreateQuery);
     /*context.GraphicsHook.InstallOnly (Direct3D9DeviceFunctions.CreateTexture,
                                       Direct3D9DeviceFunctions.ColorFill);*/
     /*context.GraphicsHook.InstallOnly (Direct3D9DeviceFunctions.DrawIndexedPrimitive,
                                       Direct3D9DeviceFunctions.SetStreamSource,
                                       Direct3D9DeviceFunctions.EndScene);*/
 }
コード例 #3
0
 private static void CreateStates(GameContext context)
 {
     context.GraphicsState = new GraphicsState (context.GraphicsInterpreter);
     context.InputState = new InputState();
 }
コード例 #4
0
 private static void CreateProviders(GameContext context)
 {
     context.GraphicsProvider = new GraphicsProvider();
     context.InputProvider = new InputProvider();
     context.StateProvider = new StateProvider (context.GraphicsState, context.InputState);
 }
コード例 #5
0
 private static void CreateManagers(GameContext context)
 {
     context.GraphicsState = new GraphicsState (context.GraphicsInterpreter);
     context.InputManager = new InputManager (context.InputProvider);
     context.StateManager = new StateManager (context.StateProvider);
 }
コード例 #6
0
 private static void AttachTransformers(GameContext context)
 {
     context.GraphicsTransformer = new Direct3D9Transformer(context.GraphicsHook);//, new StrideLoggerOverlay (context));
     context.GraphicsTransformer.Attach();
 }
コード例 #7
0
 private static void AttachInterpreters(GameContext context)
 {
     context.GraphicsInterpreter = new GraphicsInterpreter (context.GraphicsTransformer.Mirror);
 }
コード例 #8
0
 private static void UninstallHooks(GameContext context)
 {
     context.GraphicsHook.Uninstall();
 }
コード例 #9
0
 public NetManager()
 {
     m_context = new GameContext();
 }
コード例 #10
0
 void Awake()
 {
     context = new GameContext(this);
 }
コード例 #11
0
 void Awake()
 {
     context = new GameContext(this);
 }
コード例 #12
0
 public TicketRepository(GameContext context)
 {
     _context = context;
 }
コード例 #13
0
ファイル: BoardSystem.cs プロジェクト: Laughing111/Match_Ecs
 public BoardSystem(Contexts contexts) : base(contexts.game)
 {
     gameContext = contexts.game;
 }
コード例 #14
0
 public GameManager()
 {
     context = new GameContext();
 }
コード例 #15
0
 /// <summary>
 /// Create the game context.
 /// </summary>
 public GameRoot()
 {
     game = new GameContext();
 }