public VoxelWorld GetOrCreate(byte worldId, string name = default) { if (!TryGetValue(worldId, out var world)) { _records[worldId] = world = new VoxelWorld(); } return(world); }
public bool TryGetValue(byte worldId, out VoxelWorld record) { return(_records.TryGetValue(worldId, out record)); }