Exemple #1
0
        public bool AddMarker <TMarker>(TMarker markerData) where TMarker : struct, IMarker
        {
            #if WORLD_STATE_CHECK
            if (this.isActive == true && this.HasStep(WorldStep.LogicTick) == true)
            {
                OutOfStateException.ThrowWorldStateCheckVisual();
            }
            #endif

            ref var exists = ref World.MarkersDirectCache <TMarker> .exists;
Exemple #2
0
        private void RemoveMarkers()
        {
            #if WORLD_STATE_CHECK
            if (this.isActive == true && this.HasStep(WorldStep.LogicTick) == true)
            {
                OutOfStateException.ThrowWorldStateCheckVisual();
            }
            #endif

            foreach (var item in this.allExistMarkers)
            {
                item.arr[this.id] = false;
            }
        }