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()."); }
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);*/ }
private static void CreateStates(GameContext context) { context.GraphicsState = new GraphicsState (context.GraphicsInterpreter); context.InputState = new InputState(); }
private static void CreateProviders(GameContext context) { context.GraphicsProvider = new GraphicsProvider(); context.InputProvider = new InputProvider(); context.StateProvider = new StateProvider (context.GraphicsState, context.InputState); }
private static void CreateManagers(GameContext context) { context.GraphicsState = new GraphicsState (context.GraphicsInterpreter); context.InputManager = new InputManager (context.InputProvider); context.StateManager = new StateManager (context.StateProvider); }
private static void AttachTransformers(GameContext context) { context.GraphicsTransformer = new Direct3D9Transformer(context.GraphicsHook);//, new StrideLoggerOverlay (context)); context.GraphicsTransformer.Attach(); }
private static void AttachInterpreters(GameContext context) { context.GraphicsInterpreter = new GraphicsInterpreter (context.GraphicsTransformer.Mirror); }
private static void UninstallHooks(GameContext context) { context.GraphicsHook.Uninstall(); }
public NetManager() { m_context = new GameContext(); }
void Awake() { context = new GameContext(this); }
public TicketRepository(GameContext context) { _context = context; }
public BoardSystem(Contexts contexts) : base(contexts.game) { gameContext = contexts.game; }
public GameManager() { context = new GameContext(); }
/// <summary> /// Create the game context. /// </summary> public GameRoot() { game = new GameContext(); }