This commit is contained in:
Lachlan Leone
2024-10-09 16:41:33 +11:00
parent 9f4ef51d41
commit 4259b35697
10 changed files with 177 additions and 4 deletions
+31
View File
@@ -0,0 +1,31 @@
using Kitchen;
using KitchenMods;
using Unity.Entities;
namespace MMOKitchen.Systems
{
public class PatchHelpers : GameSystemBase, IModSystem
{
public static PatchHelpers instance;
public T _GetComponent<T>(Entity entity) where T : struct, IComponentData
{
return GetComponent<T>(entity);
}
public void _SetComponentData<T>(Entity entity, T componentData) where T : struct, IComponentData
{
EntityManager.SetComponentData<T>(entity, componentData);
}
protected override void Initialise()
{
instance = this;
}
protected override void OnUpdate()
{
}
}
}