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 HIM GetHIM(string name, string folderPath) { HIM result; if (!this.HIMs.Contains(name)) { HIM hIM = new HIM(); hIM.Load(folderPath + name, ClientType.IROSE); this.HIMs.Add(name, hIM); result = hIM; } else { result = (HIM)this.HIMs[name]; } return(result); }
public HIM GetHIM(string name, string folderPath) { HIM result; if (!this.HIMs.Contains(name)) { HIM hIM = new HIM(); hIM.Load(folderPath + name, ClientType.IROSE); this.HIMs.Add(name, hIM); result = hIM; } else { result = (HIM)this.HIMs[name]; } return result; }