public void AddToLevel(ref Level level, IntVec position) { if (level.map.entrances.ContainsKey(ID)) { Debug.LogWarning("Failed to add map entrance! Cannot add map entrance with ID " + ID + " to level " + level.name + " at position " + position.ToString() + " as this ID is already in use."); return; } level.map.entrances.Add(ID, position); }