예제 #1
0
 public static bool IsHashCurrent(Serial serial, int hash)
 {
     if (m_CustomHouses.ContainsKey(serial))
     {
         CustomHouse h = m_CustomHouses[serial];
         return(h.Hash == hash);
     }
     return(false);
 }
예제 #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 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);
        }
예제 #4
0
파일: Multi.cs 프로젝트: jorsi/UltimaXNA
 public void AddCustomHousingTiles(CustomHouse house)
 {
     // m_hasCustomTiles = true;
     m_customHouse = house;
     m_customHouseTiles = house.GetStatics(m_Components.Width, m_Components.Height);
 }