/************************************************************************* * ModernUO * * Copyright 2019-2026 - ModernUO Development Team * * Email: hi@modernuo.com * * File: RegionSpawner.Dto.cs * * * * This program is free software: you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation, either version 3 of the License, or * * (at your option) any later version. * * * * You should have received a copy of the GNU General Public License * * along with this program. If not, see . * *************************************************************************/ namespace Server.Engines.Spawners; public partial class RegionSpawner { // RegionSpawner spawns from region rectangles, so it writes neither homeRange nor spawnBounds. public override SpawnerDto ToDto() => new RegionSpawnerDto { Guid = Guid, Name = DtoName, Location = Location, Map = Map, Count = Count, MinDelay = MinDelay, MaxDelay = MaxDelay, Team = Team, WalkingRange = DtoWalkingRange, Entries = EntryList ?? [], SpawnLocationIsHome = SpawnLocationIsHome, Group = Group, SpawnPositionMode = DtoSpawnPositionMode, MaxSpawnAttempts = DtoMaxSpawnAttempts, Region = SpawnRegion?.Name }; }