private static bool SerializeDungeon(GenericWriter writer, DungeonSerial serial, Dungeon dungeon) { var version = writer.SetVersion(0); switch (version) { case 0: { writer.WriteBlock(w => { WriteDungeon(w, dungeon); dungeon.Serialize(w); }); } break; } return(true); }
public static Dungeon FindDungeon(DungeonSerial serial) { return(Dungeons.GetValue(serial)); }