public static bool IsHashCurrent(Serial serial, int hash) { if (m_CustomHouses.ContainsKey(serial)) { CustomHouse h = m_CustomHouses[serial]; return(h.Hash == hash); } 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); }
public void AddCustomHousingTiles(CustomHouse house) { // m_hasCustomTiles = true; m_customHouse = house; m_customHouseTiles = house.GetStatics(m_Components.Width, m_Components.Height); }