public CollisionMap GetCollisionData(params uint[] dwLevelIds) { CollisionMap result = null; foreach (var dwLevelId in dwLevelIds) { if (!levelCollisions.ContainsKey(dwLevelId)) { game.MapHandler.RevealLevel(dwLevelId); } if (result == null) { result = levelCollisions[dwLevelId]; } else { result = result.Merge(levelCollisions[dwLevelId]); } } return(result); }