public void Initialize() { Extras = new ExtraTextures(); Items = new ItemTextures(); Mounts = new MountTextures(); UI = new UITextures(); NPCs = new NPCTextures(); }
public static Rectangle GetItemRect16(ItemTextures itemId) { //this is a terrible method, it is only temporary... int y = 0; int x = 0; if ((int)itemId >= 8) { y = 1; x = (int)itemId - 8; } else { x = (int)itemId; } return(new Rectangle(x * 16, y * 16, 16, 16)); }