CharacterRenderer(TilesetLoader characterLoader, int startingID, CharacterStyleInfo styleInfo) { CharacterLoader = characterLoader; StartingID = startingID; StyleInfo = styleInfo; HUDRenderer = new HUDRenderer(StyleInfo); }
public HUDRenderer(CharacterStyleInfo styleInfo) { StyleInfo = styleInfo; StatusIconLoader = new TilesetLoader("data/tf_icon_32.png", 32); }
static CharacterRenderer Create(string path, int startingID, CharacterStyleInfo style) { TilesetLoader loader = new TilesetLoader(path, style.Width, style.Height); return(new CharacterRenderer(loader, startingID, style)); }