public GameButten(GameScreen i_GameScreen, string i_Text, int i_ButtenIndex) : base(k_AssetName, i_GameScreen.Game) { m_TextList = new List <string>(); m_TextList.Add(i_Text); m_ButtenIndex = i_ButtenIndex; m_MyScreen = i_GameScreen; m_MyScreen.Add(this); }
public LoadableDrawableComponent( string i_AssetName, Game i_Game, GameScreen i_Screen, int i_UpdateOrder, int i_DrawOrder) : base(i_Game) { this.AssetName = i_AssetName; this.UpdateOrder = i_UpdateOrder; this.DrawOrder = i_DrawOrder; m_GameSettings = i_Game.Services.GetService(typeof(IGameSettings)) as IGameSettings; // register in the screen: i_Screen.Add(this); }
public Sprite(string i_AssetName, Game i_Game, GameScreen i_GameScreen) : base(i_AssetName, i_Game, int.MaxValue) { m_GameScreen = i_GameScreen; m_GameScreen.Add(this); }