fix: Codegens some decorations (#806)

This commit is contained in:
Kamron Batman 2021-09-26 20:02:16 -07:00 committed by GitHub
parent 551078670d
commit 990d151ef3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
81 changed files with 884 additions and 1738 deletions

View file

@ -27,6 +27,13 @@ namespace Server
entity.SavePosition = -1;
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void Delete(this ISerializable entity, IEntity toDelete)
{
toDelete?.Delete();
entity.MarkDirty();
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void Add<T>(this ISerializable entity, ICollection<T> list, T value)
{