コード例 #1
0
 public void Setup()
 {
     m_World           = new World("TestWorld");
     m_NewEntities     = new NativeList <Entity>(Allocator.TempJob);
     m_MissingEntities = new NativeList <Entity>(Allocator.TempJob);
     m_Storage         = new NativeList <byte>(Allocator.TempJob);
     m_EntityDiffer    = new EntityDiffer(m_World);
     m_ChunkDiffer     = new ComponentDataDiffer(typeof(EcsTestData));
 }
コード例 #2
0
        public override void Setup()
        {
            base.Setup();

            m_NewEntities     = new NativeList <Entity>(Allocator.TempJob);
            m_RemovedEntities = new NativeList <Entity>(Allocator.TempJob);

            m_Strategy     = new EntityHierarchyDefaultGroupingStrategy(World);
            m_AssertHelper = new TestHierarchyHelper(m_Strategy);

            m_EntityDiffer    = new EntityDiffer(World);
            m_ComponentDiffer = new ComponentDataDiffer(m_Strategy.ComponentsToWatch[0]);
        }
コード例 #3
0
 public void ComponentDataDiffer_CheckIfDifferCanWatchType()
 {
     Assert.That(ComponentDataDiffer.CanWatch(typeof(EcsTestData)), Is.True);
     Assert.That(ComponentDataDiffer.CanWatch(typeof(EcsTestSharedComp)), Is.False);
     Assert.That(ComponentDataDiffer.CanWatch(typeof(Entity)), Is.False);
 }