Exemple #1
0
        CharacterRenderer(TilesetLoader characterLoader, int startingID, CharacterStyleInfo styleInfo)
        {
            CharacterLoader = characterLoader;
            StartingID      = startingID;
            StyleInfo       = styleInfo;

            HUDRenderer = new HUDRenderer(StyleInfo);
        }
Exemple #2
0
 public HUDRenderer(CharacterStyleInfo styleInfo)
 {
     StyleInfo        = styleInfo;
     StatusIconLoader = new TilesetLoader("data/tf_icon_32.png", 32);
 }
Exemple #3
0
        static CharacterRenderer Create(string path, int startingID, CharacterStyleInfo style)
        {
            TilesetLoader loader = new TilesetLoader(path, style.Width, style.Height);

            return(new CharacterRenderer(loader, startingID, style));
        }