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:
parent
b191498569
commit
a9d2b0c01f
4 changed files with 340 additions and 267 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue