public TexturedCharacter(char Character, Texture2D Texture, Color color) { this.character = Character; this.texture = Texture; this.spacing = new CharacterSpacing(); this.drawColor = color; this.position = new Vector2(); }
public TexturedCharacter(char Character, string PathToTexture, Color color) { this.character = Character; this.pathToTexture = PathToTexture; this.texture = ModCore.ModHelper.Content.Load <Texture2D>(PathToTexture + ".png"); this.spacing = new CharacterSpacing(); this.drawColor = color; this.position = new Vector2(); }
public TexturedCharacter(char Character, string PathToTexture, Color color, int left, int right, int top, int bottom) { this.character = Character; this.pathToTexture = PathToTexture; string text = this.pathToTexture.Remove(0, 1); this.texture = ModCore.ModHelper.Content.Load <Texture2D>(text + ".png"); this.spacing = new CharacterSpacing(left, right, top, bottom); this.drawColor = color; this.position = new Vector2(); }