|
|
@@ -27,10 +27,12 @@ namespace GamecraftModdingAPI.Blocks |
|
|
|
public string Name { get; } = "GamecraftModdingAPIScalingEngine"; |
|
|
|
public bool isRemovable { get; } = false; |
|
|
|
|
|
|
|
private static EntityManager _entityManager; //Unity entity manager |
|
|
|
private EntityManager _entityManager; //Unity entity manager |
|
|
|
|
|
|
|
public void UpdateCollision(EGID egid) |
|
|
|
{ |
|
|
|
if (_entityManager == default) |
|
|
|
_entityManager = FullGameFields._physicsWorld.EntityManager; |
|
|
|
//Assuming the block exists |
|
|
|
var entity = entitiesDB.QueryEntity<UECSPhysicsEntityStruct>(egid).uecsEntity; |
|
|
|
var pes = new UECSPhysicsEntityCreationStruct(); |
|
|
@@ -38,11 +40,6 @@ namespace GamecraftModdingAPI.Blocks |
|
|
|
_entityManager.DestroyEntity(entity); |
|
|
|
} |
|
|
|
|
|
|
|
internal void Setup(EntityManager entityManager) |
|
|
|
{ |
|
|
|
_entityManager = entityManager; |
|
|
|
} |
|
|
|
|
|
|
|
[HarmonyPatch] |
|
|
|
public class PhysicsEnginePatch |
|
|
|
{ |
|
|
|