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 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); } }