/// <inheritdoc /> public ZoneServerNpcEntryModel([NotNull] NetworkEntityGuid guid, int templateId, Vector3 initialPosition, NpcMovementType movement, int movementData) { if (templateId <= 0) { throw new ArgumentOutOfRangeException(nameof(templateId)); } Guid = guid ?? throw new ArgumentNullException(nameof(guid)); TemplateId = templateId; InitialPosition = initialPosition; Movement = movement; MovementData = movementData; }
/// <inheritdoc /> public NPCEntryModel(int npcTemplateId, Vector3 <float> spawnPosition, float initialOrientation, int mapId, NpcMovementType movementType, int movementData) { if (mapId <= 0) { throw new ArgumentOutOfRangeException(nameof(mapId)); } if (npcTemplateId <= 0) { throw new ArgumentOutOfRangeException(nameof(npcTemplateId)); } NpcTemplateId = npcTemplateId; SpawnPosition = spawnPosition ?? throw new ArgumentNullException(nameof(spawnPosition)); MapId = mapId; MovementType = movementType; MovementData = movementData; InitialOrientation = initialOrientation; }