* Fixes a bug with the main loop. Removes unnecessary optimizations for RDRand. * WIP - Rewriting packets. * Cleanup and updates README * Converts more packets * Fixes header * Converts Effects packets. * Forgot the send command * Adds the start of containers packets. * Adds message packets with caching * Extends the send methods * Starts to add Acquire methods * Converted the packets * Cleanup * Cleanup * Adds more packets * Adds more packets * Fixes clearing arrays from pool. Adds Mobile Incoming * Converts more packets. * Moves more packets * Moves more packets * Test compression * Merges * Migrating to an idiomatic syntax that also supports compression, and proxying. * Optimize the stack alloc. Changes attributes * Converted container packets * Visual Studio doesn't auto save files. I am still getting used to subpar IDEs. * Adds static packet caching. Will profile later. Converts more packets * Fixes packets and changes how compression is configured * WIP - Adds basics for Gumps. Not finished though. * Fix file * Fixes formatting * Changed SpanWriter to be more idiomatic. * Fixes Span vs RawSpan and missing stackallocs * Converts over some more gumps * WIP - Deletes 32bit support. * Drops RDRand32 support. * Fixes gump compilation * Converting gump components * Removes old huffman compression function * Revert signature for backwards compatibility * WIP - Converting more gump components * Creates ArraySet for the strings. Updates AppendTo to reference that. * Converts the maining gump components * Cleans up gump components * Cleans up directives * Cleans up ArraySet and moves it. Adds null-coalescing-assignment * Cleanup, Target Packets, and C# 8 changes. * Removed OPL Packet * World packets * Fixing packet uses * Cleans up code. Fixes packet uses in various places. * More cleanup for packets * Code cleanup * Converts more packet uses and cleans up more code * More code cleanup * Finishes fixing the packets in Item * Updates secure trade packets * Updates core and gets it to compile. * Moved packets to scripts. Fixed account handler use of packets * Code cleanup * Updates chat packets * Code cleanuo * Adds party packets, but need to implement them. * Party packets WIP * Finishes party packets * Rearrange movement namespaces and classes * Finishes plant packets * Code Formatting * Fixes moving effects * Code cleanup, eliminates equipinfo * Adds more packets. Fixes bugs with various packets. * Finishes mahjon packets * Fixes mahjong packet * Code cleanup * Finishes mahjong packets * Adds Map packets * Add multifacet maps and charts * Cleans up some packets with UTF8 * Optimizes packets * Cleans up more packets. Moves the MessageHelper * Removes assistant support. Removes extended protocol. Incorporates MapUO packets as normal packets. * Updates protocol extensions packet receiver * Fixes a few bugs. Fixes a few more packets. * Code cleanup and fixing more packets * Fixes packet effects * Cleaned up more code * Buff Icon cleanup * Removed unused constructors * Code Cleanup. Adds BoatHS Packets * Moves house files. Updates house foundation packets. * Deployment cleanup * Fixes: * Code cleanup * More code cleanup * More code cleanup * Cleaned up BaseHouse * Enforces styling * Converts foreach to linq where possible. * Dont need that * Goals/Readme updates * Removes 32bit support at the highest level. Turns on HRT by default. * Code cleanup. Fixes extended features packet. * Fixes various bugs * Code cleanup * Code cleanup * Code cleanup. Fixes gump X/Y assignment. * Code cleanup using |= operator * More code cleanup * Cleanup * Fixes spacing issues. Thanks Visual Studio. You suck. * Compiler error * Fixes NPE from RunUO 2.7 * Renames ScriptCompiler to AssemblyHandler. Fixes packets. Updates README * Fixes more packets. Stupid trailing nulls. * Fixes various bugs. * Fixes for gumps * Fixes more gump stuff. Going to split it out later since it is getting insane * Recoded the gump writing * WIP * *Added output path of scripts project to dev branch *Activated debugging in code
584 lines
16 KiB
C#
584 lines
16 KiB
C#
using Server.Items;
|
|
using Server.Multis.Deeds;
|
|
|
|
namespace Server.Multis
|
|
{
|
|
public class SmallOldHouse : BaseHouse
|
|
{
|
|
public static Rectangle2D[] AreaArray = { new Rectangle2D(-3, -3, 7, 7), new Rectangle2D(-1, 4, 3, 1) };
|
|
|
|
public SmallOldHouse(Mobile owner, int id) : base(id, owner, 425, 3)
|
|
{
|
|
uint keyValue = CreateKeys(owner);
|
|
|
|
AddSouthDoor(0, 3, 7, keyValue);
|
|
|
|
SetSign(2, 4, 5);
|
|
}
|
|
|
|
public SmallOldHouse(Serial serial) : base(serial)
|
|
{
|
|
}
|
|
|
|
public override Rectangle2D[] Area => AreaArray;
|
|
public override Point3D BaseBanLocation => new Point3D(2, 4, 0);
|
|
|
|
public override int DefaultPrice => 43800;
|
|
|
|
public override HousePlacementEntry ConvertEntry => HousePlacementEntry.TwoStoryFoundations[0];
|
|
|
|
public override HouseDeed GetDeed()
|
|
{
|
|
return ItemID switch
|
|
{
|
|
0x64 => (HouseDeed)new StonePlasterHouseDeed(),
|
|
0x66 => new FieldStoneHouseDeed(),
|
|
0x68 => new SmallBrickHouseDeed(),
|
|
0x6A => new WoodHouseDeed(),
|
|
0x6C => new WoodPlasterHouseDeed(),
|
|
0x6E => new ThatchedRoofCottageDeed(),
|
|
_ => new ThatchedRoofCottageDeed()
|
|
};
|
|
}
|
|
|
|
public override void Serialize(GenericWriter writer)
|
|
{
|
|
base.Serialize(writer);
|
|
writer.Write(0); //version
|
|
}
|
|
|
|
public override void Deserialize(GenericReader reader)
|
|
{
|
|
base.Deserialize(reader);
|
|
int version = reader.ReadInt();
|
|
}
|
|
}
|
|
|
|
public class GuildHouse : BaseHouse
|
|
{
|
|
public static Rectangle2D[] AreaArray = { new Rectangle2D(-7, -7, 14, 14), new Rectangle2D(-2, 7, 4, 1) };
|
|
|
|
public GuildHouse(Mobile owner) : base(0x74, owner, 1100, 8)
|
|
{
|
|
uint keyValue = CreateKeys(owner);
|
|
|
|
AddSouthDoors(-1, 6, 7, keyValue);
|
|
|
|
SetSign(4, 8, 16);
|
|
|
|
AddSouthDoor(-3, -1, 7);
|
|
AddSouthDoor(3, -1, 7);
|
|
}
|
|
|
|
public GuildHouse(Serial serial) : base(serial)
|
|
{
|
|
}
|
|
|
|
public override int DefaultPrice => 144500;
|
|
|
|
public override HousePlacementEntry ConvertEntry => HousePlacementEntry.ThreeStoryFoundations[20];
|
|
public override int ConvertOffsetX => -1;
|
|
public override int ConvertOffsetY => -1;
|
|
|
|
public override Rectangle2D[] Area => AreaArray;
|
|
public override Point3D BaseBanLocation => new Point3D(4, 8, 0);
|
|
|
|
public override HouseDeed GetDeed() => new BrickHouseDeed();
|
|
|
|
public override void Serialize(GenericWriter writer)
|
|
{
|
|
base.Serialize(writer);
|
|
writer.Write(0); //version
|
|
}
|
|
|
|
public override void Deserialize(GenericReader reader)
|
|
{
|
|
base.Deserialize(reader);
|
|
int version = reader.ReadInt();
|
|
}
|
|
}
|
|
|
|
public class TwoStoryHouse : BaseHouse
|
|
{
|
|
public static Rectangle2D[] AreaArray =
|
|
{ new Rectangle2D(-7, 0, 14, 7), new Rectangle2D(-7, -7, 9, 7), new Rectangle2D(-4, 7, 4, 1) };
|
|
|
|
public TwoStoryHouse(Mobile owner, int id) : base(id, owner, 1370, 10)
|
|
{
|
|
uint keyValue = CreateKeys(owner);
|
|
|
|
AddSouthDoors(-3, 6, 7, keyValue);
|
|
|
|
SetSign(2, 8, 16);
|
|
|
|
AddSouthDoor(-3, 0, 7);
|
|
AddSouthDoor(id == 0x76 ? -2 : -3, 0, 27);
|
|
}
|
|
|
|
public TwoStoryHouse(Serial serial) : base(serial)
|
|
{
|
|
}
|
|
|
|
public override Rectangle2D[] Area => AreaArray;
|
|
public override Point3D BaseBanLocation => new Point3D(2, 8, 0);
|
|
|
|
public override int DefaultPrice => 192400;
|
|
|
|
public override HouseDeed GetDeed()
|
|
{
|
|
return ItemID switch
|
|
{
|
|
0x76 => (HouseDeed)new TwoStoryWoodPlasterHouseDeed(),
|
|
0x78 => new TwoStoryStonePlasterHouseDeed(),
|
|
_ => new TwoStoryStonePlasterHouseDeed()
|
|
};
|
|
}
|
|
|
|
public override void Serialize(GenericWriter writer)
|
|
{
|
|
base.Serialize(writer);
|
|
writer.Write(0); //version
|
|
}
|
|
|
|
public override void Deserialize(GenericReader reader)
|
|
{
|
|
base.Deserialize(reader);
|
|
int version = reader.ReadInt();
|
|
}
|
|
}
|
|
|
|
public class Tower : BaseHouse
|
|
{
|
|
public static Rectangle2D[] AreaArray =
|
|
{
|
|
new Rectangle2D(-7, -7, 16, 14), new Rectangle2D(-1, 7, 4, 2), new Rectangle2D(-11, 0, 4, 7),
|
|
new Rectangle2D(9, 0, 4, 7)
|
|
};
|
|
|
|
public Tower(Mobile owner) : base(0x7A, owner, 2119, 15)
|
|
{
|
|
uint keyValue = CreateKeys(owner);
|
|
|
|
AddSouthDoors(false, 0, 6, 6, keyValue);
|
|
|
|
SetSign(5, 8, 16);
|
|
|
|
AddSouthDoor(false, 3, -2, 6);
|
|
AddEastDoor(false, 1, 4, 26);
|
|
AddEastDoor(false, 1, 4, 46);
|
|
}
|
|
|
|
public Tower(Serial serial) : base(serial)
|
|
{
|
|
}
|
|
|
|
public override int DefaultPrice => 433200;
|
|
|
|
public override HousePlacementEntry ConvertEntry => HousePlacementEntry.ThreeStoryFoundations[37];
|
|
public override int ConvertOffsetY => -1;
|
|
|
|
public override Rectangle2D[] Area => AreaArray;
|
|
public override Point3D BaseBanLocation => new Point3D(5, 8, 0);
|
|
|
|
public override HouseDeed GetDeed() => new TowerDeed();
|
|
|
|
public override void Serialize(GenericWriter writer)
|
|
{
|
|
base.Serialize(writer);
|
|
writer.Write(0); //version
|
|
}
|
|
|
|
public override void Deserialize(GenericReader reader)
|
|
{
|
|
base.Deserialize(reader);
|
|
int version = reader.ReadInt();
|
|
}
|
|
}
|
|
|
|
public class Keep : BaseHouse //warning: ODD shape!
|
|
{
|
|
public static Rectangle2D[] AreaArray =
|
|
{
|
|
new Rectangle2D(-11, -11, 7, 8), new Rectangle2D(-11, 5, 7, 8), new Rectangle2D(6, -11, 7, 8),
|
|
new Rectangle2D(6, 5, 7, 8), new Rectangle2D(-9, -3, 5, 8), new Rectangle2D(6, -3, 5, 8),
|
|
new Rectangle2D(-4, -9, 10, 20), new Rectangle2D(-1, 11, 4, 1)
|
|
};
|
|
|
|
public Keep(Mobile owner) : base(0x7C, owner, 2625, 18)
|
|
{
|
|
uint keyValue = CreateKeys(owner);
|
|
|
|
AddSouthDoors(false, 0, 10, 6, keyValue);
|
|
|
|
SetSign(5, 12, 16);
|
|
}
|
|
|
|
public Keep(Serial serial) : base(serial)
|
|
{
|
|
}
|
|
|
|
public override int DefaultPrice => 665200;
|
|
|
|
public override Rectangle2D[] Area => AreaArray;
|
|
public override Point3D BaseBanLocation => new Point3D(5, 13, 0);
|
|
|
|
public override HouseDeed GetDeed() => new KeepDeed();
|
|
|
|
public override void Serialize(GenericWriter writer)
|
|
{
|
|
base.Serialize(writer);
|
|
writer.Write(0); //version
|
|
}
|
|
|
|
public override void Deserialize(GenericReader reader)
|
|
{
|
|
base.Deserialize(reader);
|
|
int version = reader.ReadInt();
|
|
}
|
|
}
|
|
|
|
public class Castle : BaseHouse
|
|
{
|
|
public static Rectangle2D[] AreaArray = { new Rectangle2D(-15, -15, 31, 31), new Rectangle2D(-1, 16, 4, 1) };
|
|
|
|
public Castle(Mobile owner) : base(0x7E, owner, 4076, 28)
|
|
{
|
|
uint keyValue = CreateKeys(owner);
|
|
|
|
AddSouthDoors(false, 0, 15, 6, keyValue);
|
|
|
|
SetSign(5, 17, 16);
|
|
|
|
AddSouthDoors(false, 0, 11, 6, true);
|
|
AddSouthDoors(false, 0, 5, 6, false);
|
|
AddSouthDoors(false, -1, -11, 6, false);
|
|
}
|
|
|
|
public Castle(Serial serial) : base(serial)
|
|
{
|
|
}
|
|
|
|
public override int DefaultPrice => 1022800;
|
|
|
|
public override Rectangle2D[] Area => AreaArray;
|
|
public override Point3D BaseBanLocation => new Point3D(5, 17, 0);
|
|
|
|
public override HouseDeed GetDeed() => new CastleDeed();
|
|
|
|
public override void Serialize(GenericWriter writer)
|
|
{
|
|
base.Serialize(writer);
|
|
writer.Write(0); //version
|
|
}
|
|
|
|
public override void Deserialize(GenericReader reader)
|
|
{
|
|
base.Deserialize(reader);
|
|
int version = reader.ReadInt();
|
|
}
|
|
}
|
|
|
|
public class LargePatioHouse : BaseHouse
|
|
{
|
|
public static Rectangle2D[] AreaArray = { new Rectangle2D(-7, -7, 15, 14), new Rectangle2D(-5, 7, 4, 1) };
|
|
|
|
public LargePatioHouse(Mobile owner) : base(0x8C, owner, 1100, 8)
|
|
{
|
|
uint keyValue = CreateKeys(owner);
|
|
|
|
AddSouthDoors(-4, 6, 7, keyValue);
|
|
|
|
SetSign(1, 8, 16);
|
|
|
|
AddEastDoor(1, 4, 7);
|
|
AddEastDoor(1, -4, 7);
|
|
AddSouthDoor(4, -1, 7);
|
|
}
|
|
|
|
public LargePatioHouse(Serial serial) : base(serial)
|
|
{
|
|
}
|
|
|
|
public override int DefaultPrice => 152800;
|
|
|
|
public override HousePlacementEntry ConvertEntry => HousePlacementEntry.ThreeStoryFoundations[29];
|
|
public override int ConvertOffsetY => -1;
|
|
|
|
public override Rectangle2D[] Area => AreaArray;
|
|
public override Point3D BaseBanLocation => new Point3D(1, 8, 0);
|
|
|
|
public override HouseDeed GetDeed() => new LargePatioDeed();
|
|
|
|
public override void Serialize(GenericWriter writer)
|
|
{
|
|
base.Serialize(writer);
|
|
writer.Write(0); //version
|
|
}
|
|
|
|
public override void Deserialize(GenericReader reader)
|
|
{
|
|
base.Deserialize(reader);
|
|
int version = reader.ReadInt();
|
|
}
|
|
}
|
|
|
|
public class LargeMarbleHouse : BaseHouse
|
|
{
|
|
public static Rectangle2D[] AreaArray = { new Rectangle2D(-7, -7, 15, 14), new Rectangle2D(-6, 7, 6, 1) };
|
|
|
|
public LargeMarbleHouse(Mobile owner) : base(0x96, owner, 1370, 10)
|
|
{
|
|
uint keyValue = CreateKeys(owner);
|
|
|
|
AddSouthDoors(false, -4, 3, 4, keyValue);
|
|
|
|
SetSign(1, 8, 11);
|
|
}
|
|
|
|
public LargeMarbleHouse(Serial serial) : base(serial)
|
|
{
|
|
}
|
|
|
|
public override int DefaultPrice => 192000;
|
|
|
|
public override HousePlacementEntry ConvertEntry => HousePlacementEntry.ThreeStoryFoundations[29];
|
|
public override int ConvertOffsetY => -1;
|
|
|
|
public override Rectangle2D[] Area => AreaArray;
|
|
public override Point3D BaseBanLocation => new Point3D(1, 8, 0);
|
|
|
|
public override HouseDeed GetDeed() => new LargeMarbleDeed();
|
|
|
|
public override void Serialize(GenericWriter writer)
|
|
{
|
|
base.Serialize(writer);
|
|
writer.Write(0); //version
|
|
}
|
|
|
|
public override void Deserialize(GenericReader reader)
|
|
{
|
|
base.Deserialize(reader);
|
|
int version = reader.ReadInt();
|
|
}
|
|
}
|
|
|
|
public class SmallTower : BaseHouse
|
|
{
|
|
public static Rectangle2D[] AreaArray = { new Rectangle2D(-3, -3, 8, 7), new Rectangle2D(2, 4, 3, 1) };
|
|
|
|
public SmallTower(Mobile owner) : base(0x98, owner, 580, 4)
|
|
{
|
|
uint keyValue = CreateKeys(owner);
|
|
|
|
AddSouthDoor(false, 3, 3, 6, keyValue);
|
|
|
|
SetSign(1, 4, 5);
|
|
}
|
|
|
|
public SmallTower(Serial serial) : base(serial)
|
|
{
|
|
}
|
|
|
|
public override int DefaultPrice => 88500;
|
|
|
|
public override HousePlacementEntry ConvertEntry => HousePlacementEntry.TwoStoryFoundations[6];
|
|
|
|
public override Rectangle2D[] Area => AreaArray;
|
|
public override Point3D BaseBanLocation => new Point3D(1, 4, 0);
|
|
|
|
public override HouseDeed GetDeed() => new SmallTowerDeed();
|
|
|
|
public override void Serialize(GenericWriter writer)
|
|
{
|
|
base.Serialize(writer);
|
|
writer.Write(0); //version
|
|
}
|
|
|
|
public override void Deserialize(GenericReader reader)
|
|
{
|
|
base.Deserialize(reader);
|
|
int version = reader.ReadInt();
|
|
}
|
|
}
|
|
|
|
public class LogCabin : BaseHouse
|
|
{
|
|
public static Rectangle2D[] AreaArray = { new Rectangle2D(-3, -6, 8, 13) };
|
|
|
|
public LogCabin(Mobile owner) : base(0x9A, owner, 1100, 8)
|
|
{
|
|
uint keyValue = CreateKeys(owner);
|
|
|
|
AddSouthDoor(1, 4, 8, keyValue);
|
|
|
|
SetSign(5, 8, 20);
|
|
|
|
AddSouthDoor(1, 0, 29);
|
|
}
|
|
|
|
public LogCabin(Serial serial) : base(serial)
|
|
{
|
|
}
|
|
|
|
public override int DefaultPrice => 97800;
|
|
|
|
public override HousePlacementEntry ConvertEntry => HousePlacementEntry.TwoStoryFoundations[12];
|
|
|
|
public override Rectangle2D[] Area => AreaArray;
|
|
public override Point3D BaseBanLocation => new Point3D(5, 8, 0);
|
|
|
|
public override HouseDeed GetDeed() => new LogCabinDeed();
|
|
|
|
public override void Serialize(GenericWriter writer)
|
|
{
|
|
base.Serialize(writer);
|
|
writer.Write(0); //version
|
|
}
|
|
|
|
public override void Deserialize(GenericReader reader)
|
|
{
|
|
base.Deserialize(reader);
|
|
int version = reader.ReadInt();
|
|
}
|
|
}
|
|
|
|
public class SandStonePatio : BaseHouse
|
|
{
|
|
public static Rectangle2D[] AreaArray = { new Rectangle2D(-5, -4, 12, 8), new Rectangle2D(-2, 4, 3, 1) };
|
|
|
|
public SandStonePatio(Mobile owner) : base(0x9C, owner, 850, 6)
|
|
{
|
|
uint keyValue = CreateKeys(owner);
|
|
|
|
AddSouthDoor(-1, 3, 6, keyValue);
|
|
|
|
SetSign(4, 6, 24);
|
|
}
|
|
|
|
public SandStonePatio(Serial serial) : base(serial)
|
|
{
|
|
}
|
|
|
|
public override int DefaultPrice => 90900;
|
|
|
|
public override HousePlacementEntry ConvertEntry => HousePlacementEntry.TwoStoryFoundations[35];
|
|
public override int ConvertOffsetY => -1;
|
|
|
|
public override Rectangle2D[] Area => AreaArray;
|
|
public override Point3D BaseBanLocation => new Point3D(4, 6, 0);
|
|
|
|
public override HouseDeed GetDeed() => new SandstonePatioDeed();
|
|
|
|
public override void Serialize(GenericWriter writer)
|
|
{
|
|
base.Serialize(writer);
|
|
writer.Write(0); //version
|
|
}
|
|
|
|
public override void Deserialize(GenericReader reader)
|
|
{
|
|
base.Deserialize(reader);
|
|
int version = reader.ReadInt();
|
|
}
|
|
}
|
|
|
|
public class TwoStoryVilla : BaseHouse
|
|
{
|
|
public static Rectangle2D[] AreaArray = { new Rectangle2D(-5, -5, 11, 11), new Rectangle2D(2, 6, 4, 1) };
|
|
|
|
public TwoStoryVilla(Mobile owner) : base(0x9E, owner, 1100, 8)
|
|
{
|
|
uint keyValue = CreateKeys(owner);
|
|
|
|
AddSouthDoors(3, 1, 5, keyValue);
|
|
|
|
SetSign(3, 8, 24);
|
|
|
|
AddEastDoor(1, 0, 25);
|
|
AddSouthDoor(-3, -1, 25);
|
|
}
|
|
|
|
public TwoStoryVilla(Serial serial) : base(serial)
|
|
{
|
|
}
|
|
|
|
public override int DefaultPrice => 136500;
|
|
|
|
public override HousePlacementEntry ConvertEntry => HousePlacementEntry.TwoStoryFoundations[31];
|
|
|
|
public override Rectangle2D[] Area => AreaArray;
|
|
public override Point3D BaseBanLocation => new Point3D(3, 8, 0);
|
|
|
|
public override HouseDeed GetDeed() => new VillaDeed();
|
|
|
|
public override void Serialize(GenericWriter writer)
|
|
{
|
|
base.Serialize(writer);
|
|
writer.Write(0); //version
|
|
}
|
|
|
|
public override void Deserialize(GenericReader reader)
|
|
{
|
|
base.Deserialize(reader);
|
|
int version = reader.ReadInt();
|
|
}
|
|
}
|
|
|
|
public class SmallShop : BaseHouse
|
|
{
|
|
public static Rectangle2D[] AreaArray1 = { new Rectangle2D(-3, -3, 7, 7), new Rectangle2D(-1, 4, 4, 1) };
|
|
public static Rectangle2D[] AreaArray2 = { new Rectangle2D(-3, -3, 7, 7), new Rectangle2D(-2, 4, 3, 1) };
|
|
|
|
public SmallShop(Mobile owner, int id) : base(id, owner, 425, 3)
|
|
{
|
|
uint keyValue = CreateKeys(owner);
|
|
|
|
BaseDoor door = MakeDoor(false, DoorFacing.EastCW);
|
|
|
|
door.Locked = true;
|
|
door.KeyValue = keyValue;
|
|
|
|
if (door is BaseHouseDoor houseDoor)
|
|
houseDoor.Facing = DoorFacing.EastCCW;
|
|
|
|
AddDoor(door, -2, 0, id == 0xA2 ? 24 : 27);
|
|
|
|
//AddSouthDoor( false, -2, 0, 27 - (id == 0xA2 ? 3 : 0), keyValue );
|
|
|
|
SetSign(3, 4, 7 - (id == 0xA2 ? 2 : 0));
|
|
}
|
|
|
|
public SmallShop(Serial serial) : base(serial)
|
|
{
|
|
}
|
|
|
|
public override Rectangle2D[] Area => ItemID == 0x40A2 ? AreaArray1 : AreaArray2;
|
|
public override Point3D BaseBanLocation => new Point3D(3, 4, 0);
|
|
|
|
public override int DefaultPrice => 63000;
|
|
|
|
public override HousePlacementEntry ConvertEntry => HousePlacementEntry.TwoStoryFoundations[0];
|
|
|
|
public override HouseDeed GetDeed()
|
|
{
|
|
return ItemID switch
|
|
{
|
|
0xA0 => (HouseDeed)new StoneWorkshopDeed(),
|
|
0xA2 => new MarbleWorkshopDeed(),
|
|
_ => new MarbleWorkshopDeed()
|
|
};
|
|
}
|
|
|
|
public override void Serialize(GenericWriter writer)
|
|
{
|
|
base.Serialize(writer);
|
|
writer.Write(0); //version
|
|
}
|
|
|
|
public override void Deserialize(GenericReader reader)
|
|
{
|
|
base.Deserialize(reader);
|
|
int version = reader.ReadInt();
|
|
}
|
|
}
|
|
}
|