fix: Codegens BaseMulti, Container, and VirtualCheck (#1624)
This commit is contained in:
parent
4ebdc75bdf
commit
e21ff0eb28
9 changed files with 192 additions and 298 deletions
|
|
@ -280,7 +280,10 @@ public class GenericEntityPersistence<T> : Persistence, IGenericEntityPersistenc
|
|||
{
|
||||
switch (World.WorldState)
|
||||
{
|
||||
default: return null;
|
||||
default:
|
||||
{
|
||||
return null;
|
||||
}
|
||||
case WorldState.Loading:
|
||||
case WorldState.Saving:
|
||||
case WorldState.WritingSave:
|
||||
|
|
|
|||
|
|
@ -133,7 +133,10 @@ public interface IGenericWriter
|
|||
{
|
||||
switch (sizeof(T))
|
||||
{
|
||||
default: throw new ArgumentException($"Argument of type {typeof(T)} is not a normal enum");
|
||||
default:
|
||||
{
|
||||
throw new ArgumentException($"Argument of type {typeof(T)} is not a normal enum");
|
||||
}
|
||||
case 1:
|
||||
{
|
||||
Write(*(byte*)&value);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue