Esempio n. 1
0
 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();
 }
Esempio n. 2
0
 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;
 }