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

            HUDRenderer = new HUDRenderer(StyleInfo);
        }
예제 #2
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));
        }
예제 #3
0
 public HUDRenderer(CharacterStyleInfo styleInfo)
 {
     StyleInfo        = styleInfo;
     StatusIconLoader = new TilesetLoader("data/tf_icon_32.png", 32);
 }