feat: Adds housing.bin support (#2329)

### Summary

Changes component verification so the order is now housing.bin, then txt files in client, then txt files in Data/Components folder on the server.
This commit is contained in:
Kamron Batman 2026-02-08 19:10:23 -08:00 • committed by GitHub
parent b191498569
commit a9d2b0c01f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 340 additions and 267 deletions

View file

@ -25,8 +25,6 @@ namespace Server.Multis
public class HouseFoundation : BaseHouse
{
private static ComponentVerification m_Verification;
public static readonly bool AllowStairSectioning = true;
/* Stair block IDs
@ -201,8 +199,6 @@ namespace Server.Multis
}
}
public static ComponentVerification Verification => m_Verification ??= new ComponentVerification();
public bool IsFixture(Item item) => Fixtures.Contains(item);
public override int GetMaxUpdateRange() => 24;
@ -1358,7 +1354,7 @@ namespace Server.Multis
public static bool ValidPiece(int itemID, bool roof = false)
{
itemID &= TileData.MaxItemValue;
return roof == TileData.ItemTable[itemID].Roof && Verification.IsItemValid(itemID);
return roof == TileData.ItemTable[itemID].Roof && ComponentVerification.IsItemValid(itemID);
}
public static bool IsStairBlock(int id)
@ -1638,7 +1634,7 @@ namespace Server.Multis
// Validate stair multi ID
var design = context.Foundation.DesignState;
if (!Verification.IsMultiValid(itemID))
if (!ComponentVerification.IsMultiValid(itemID))
{
/* Specified multi ID is not a stair
* - Resend design state