Beispiel #1
0
 public void AddCustomHousingTiles(CustomHouse house)
 {
     m_hasCustomTiles = true;
     m_customHouse = house;
     m_customHouseTiles = house.GetStatics(m_components.Width, m_components.Height);
     redrawAllTiles();
 }
Beispiel #2
0
        public static void UpdateCustomHouseData(Serial serial, int hash, int planecount, CustomHousePlane[] planes)
        {
            CustomHouse house;

            if (m_customHouses.ContainsKey(serial))
            {
                house = m_customHouses[serial];
            }
            else
            {
                house = new CustomHouse(serial);
                m_customHouses.Add(serial, house);
            }
            house.Update(hash, planecount, planes);
        }
Beispiel #3
0
 public static bool IsHashCurrent(Serial serial, int hash)
 {
     if (m_customHouses.ContainsKey(serial))
     {
         CustomHouse h = m_customHouses[serial];
         if (h.Hash == hash)
         {
             return(true);
         }
         else
         {
             return(false);
         }
     }
     else
     {
         return(false);
     }
 }
        public static void UpdateCustomHouseData(Serial serial, int hash, int planecount, CustomHousePlane[] planes)
        {
            CustomHouse house;
            if (m_customHouses.ContainsKey(serial))
            {
                house = m_customHouses[serial];

            }
            else
            {
                house = new CustomHouse(serial);
                m_customHouses.Add(serial, house);
            }
            house.Update(hash, planecount, planes);
        }