Exemplo n.º 1
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);
        }
Exemplo n.º 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);
 }
Exemplo n.º 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);
     }
 }