/************************************************************************* * ModernUO * * Copyright 2019-2020 - ModernUO Development Team * * Email: hi@modernuo.com * * File: IGenericReader.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 . * *************************************************************************/ using System; using System.Collections.Generic; using System.Net; using Server.Guilds; namespace Server { public interface IGenericReader { string ReadString(); DateTime ReadDateTime(); DateTimeOffset ReadDateTimeOffset(); TimeSpan ReadTimeSpan(); DateTime ReadDeltaTime(); decimal ReadDecimal(); long ReadLong(); ulong ReadULong(); int ReadInt(); uint ReadUInt(); short ReadShort(); ushort ReadUShort(); double ReadDouble(); float ReadFloat(); char ReadChar(); byte ReadByte(); sbyte ReadSByte(); bool ReadBool(); int ReadEncodedInt(); IPAddress ReadIPAddress(); Point3D ReadPoint3D(); Point2D ReadPoint2D(); Rectangle2D ReadRect2D(); Rectangle3D ReadRect3D(); Map ReadMap(); IEntity ReadEntity(); Item ReadItem(); Mobile ReadMobile(); BaseGuild ReadGuild(); T ReadItem() where T : Item; T ReadMobile() where T : Mobile; T ReadGuild() where T : BaseGuild; List ReadStrongItemList(); List ReadStrongItemList() where T : Item; List ReadStrongMobileList(); List ReadStrongMobileList() where T : Mobile; List ReadStrongGuildList(); List ReadStrongGuildList() where T : BaseGuild; HashSet ReadItemSet(); HashSet ReadItemSet() where T : Item; HashSet ReadMobileSet(); HashSet ReadMobileSet() where T : Mobile; HashSet ReadGuildSet(); HashSet ReadGuildSet() where T : BaseGuild; Race ReadRace(); bool End(); } }