public GameRenderer(UxContext uxContext, IRenderizable game) { Game = game; WRenderer = uxContext.WRenderer; RenderOnEndActions = new List <Action>(); Renderers = new List <IRenderer>(); CompRenderers = new Dictionary <Type, ICompRenderer>(); }
public InputHandler( UxContext uxContext, T game, IGameRenderer gameRenderer, IDictionary<int, int> controlsByKeys, int closeWindowControl, int toggleMusicControl, bool allowRepeats = false ) { UxContext = uxContext; Game = game; GameRenderer = gameRenderer; ControlsByKeys = controlsByKeys; ControlStates = ControlsByKeys .Select(kc => kc.Value) .Distinct() .ToDictionary(kc => kc, _ => false); CloseWindowControl = closeWindowControl; ToggleMusicControl = toggleMusicControl; AllowRepeats = allowRepeats; }
public BufferedGameRenderer(UxContext uxContext, IRenderizable game) : base(uxContext, game) =>