Changeset 267 for binary-improvements/MapRendering
- Timestamp:
- Apr 28, 2016, 1:41:44 PM (9 years ago)
- Location:
- binary-improvements/MapRendering
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/MapRendering/API.cs
r250 r267 10 10 } 11 11 12 // public override void GameStartDone () { 13 // if (AllocsFixes.NetConnections.Servers.Web.Handlers.ItemIconHandler.Instance != null) { 14 // AllocsFixes.NetConnections.Servers.Web.Handlers.ItemIconHandler.Instance.LoadIcons (); 15 // } 16 // } 17 12 18 public override void CalcChunkColorsDone (Chunk _chunk) { 13 19 AllocsFixes.MapRendering.MapRendering.RenderSingleChunk (_chunk); -
binary-improvements/MapRendering/Web/Handlers/ItemIconHandler.cs
r254 r267 9 9 { 10 10 public class ItemIconHandler : PathHandler { 11 private static ItemIconHandler instance = null; 12 public static ItemIconHandler Instance { 13 get { return instance; } 14 } 15 11 16 private string staticPart; 12 17 private bool logMissingFiles; … … 17 22 this.staticPart = staticPart; 18 23 this.logMissingFiles = logMissingFiles; 24 ItemIconHandler.instance = this; 19 25 } 20 26 … … 47 53 } 48 54 49 p rivatebool LoadIcons () {55 public bool LoadIcons () { 50 56 lock (icons) { 51 57 if (loaded) {
Note:
See TracChangeset
for help on using the changeset viewer.