Updates Serialization (#292)
- [X] Removes all save strategies
- [X] Removes duplicate file writer that won't be used
- [X] Removes persistence (it will become a duplicate system)
- [X] Add a save position variable to skip serializing a clean item/mobile
- [X] Update Guilds/Accounts to be IEntity types
- Because guilds are abstract, this may make serialization tricky.
- [X] Update the generalized IEntity writing
- [X] Update the load/save to write to buffers then to files in background
Bumps release version
This commit is contained in:
parent
a8d486a969
commit
1ca8655fc1
43 changed files with 1148 additions and 4351 deletions
|
|
@ -101,7 +101,7 @@ namespace Server.Items
|
|||
}
|
||||
else
|
||||
{
|
||||
throw new Exception(World.LoadingType);
|
||||
throw new Exception("Invalid beverage type");
|
||||
}
|
||||
|
||||
break;
|
||||
|
|
@ -380,7 +380,7 @@ namespace Server.Items
|
|||
}
|
||||
else
|
||||
{
|
||||
throw new Exception(World.LoadingType);
|
||||
throw new Exception("Invalid beverage type");
|
||||
}
|
||||
|
||||
break;
|
||||
|
|
@ -550,7 +550,7 @@ namespace Server.Items
|
|||
}
|
||||
else
|
||||
{
|
||||
throw new Exception(World.LoadingType);
|
||||
throw new Exception("Invalid beverage type");
|
||||
}
|
||||
|
||||
break;
|
||||
|
|
@ -1106,7 +1106,7 @@ namespace Server.Items
|
|||
writer.Write(m_Quantity);
|
||||
}
|
||||
|
||||
protected bool CheckType(string name) => World.LoadingType == $"Server.Items.{name}";
|
||||
protected bool CheckType(string name) => GetType().FullName == $"Server.Items.{name}";
|
||||
|
||||
public override void Deserialize(IGenericReader reader)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue