public void Load(ZON zon, string mapFolder, string himName, string tilName, Vector2 mapPosition) { this.zon = zon; this.mapPosition = mapPosition; this.him = ContentManager.Instance().GetHIM(himName, mapFolder); this.til = ContentManager.Instance().GetTIL(tilName, mapFolder); this.GenerateVertices(); }
public TIL GetTIL(string name, string folderPath) { TIL result; if (!this.TILs.Contains(name)) { TIL tIL = new TIL(); tIL.Load(folderPath + name, ClientType.IROSE); this.TILs.Add(name, tIL); result = tIL; } else { result = (TIL)this.TILs[name]; } return(result); }