Exemplo n.º 1
0
 public EntityManagerPatcher(World world, Allocator allocator)
 {
     m_EntityManager          = world.EntityManager;
     m_EntityQuery            = EntityManagerPatcherUtility.CreateQuery(m_EntityManager);
     m_PrefabQuery            = EntityManagerPatcherUtility.CreatePrefabQuery(m_EntityManager);
     m_LinkedEntityGroupQuery = EntityManagerPatcherUtility.CreateLinkedEntityGroupQuery(m_EntityManager);
 }
Exemplo n.º 2
0
 public void ApplyChangeSet(EntityChangeSet changes)
 {
     using (s_PatchesMarker.Auto())
     {
         EntityManagerPatcherUtility.ApplyChangeSet(
             m_EntityManager,
             m_EntityQuery,
             m_PrefabQuery,
             m_LinkedEntityGroupQuery,
             changes);
     }
 }