/************************************************************************* * ModernUO * * Copyright 2019-2020 - ModernUO Development Team * * Email: hi@modernuo.com * * File: IGenericWriter.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.IO; using System.Net; namespace Server { public interface IGenericWriter { long Position { get; } void Close(); void Write(string value); void Write(DateTime value); void Write(TimeSpan value); void Write(decimal value); void Write(long value); void Write(ulong value); void Write(int value); void Write(uint value); void Write(short value); void Write(ushort value); void Write(double value); void Write(float value); void Write(byte value); void Write(sbyte value); void Write(bool value); void WriteEncodedInt(int value); void Write(IPAddress value); void WriteDeltaTime(DateTime value); void Write(Point3D value); void Write(Point2D value); void Write(Rectangle2D value); void Write(Rectangle3D value); void Write(Map value); void Write(ISerializable value); void Write(Race value); void Write(ICollection list) where T : class, ISerializable; void Write(ReadOnlySpan bytes); long Seek(long offset, SeekOrigin origin); } }