예제 #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);
        }
예제 #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);
 }
예제 #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);
     }
 }