public AGSGame(IGameState state, IGameEvents gameEvents, IRenderMessagePump renderMessagePump, IUpdateMessagePump updateMessagePump, IGraphicsBackend graphics, IGLUtils glUtils) { _renderMessagePump = renderMessagePump; _renderMessagePump.SetSyncContext(); _updateMessagePump = updateMessagePump; State = state; Events = gameEvents; _relativeSpeed = state.Speed; _graphics = graphics; _glUtils = glUtils; GLUtils = _glUtils; }
public AGSGame(IGameState state, IGameEvents gameEvents, IMessagePump messagePump, IGraphicsBackend graphics, IGLUtils glUtils) { _messagePump = messagePump; _messagePump.SetSyncContext(); State = state; Events = gameEvents; _relativeSpeed = state.Speed; _renderEventArgs = new AGSEventArgs(); _graphics = graphics; _glUtils = glUtils; GLUtils = _glUtils; }