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;
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; } }