// Generate By EToy
// Don't Edit It!!

using XGame.Framework.Serialization;
namespace XGame.Database
{
    /// <summary>
    /// 3维坐标
    /// </summary>
    public sealed class Vec3 : ISerializable
    {
        public float X { get; private set; }
        public float Y { get; private set; }
        public float Z { get; private set; }

        void ISerializable.Deserialize(IReader reader)
        {
            X = reader.ReadFloat();
            Y = reader.ReadFloat();
            Z = reader.ReadFloat();
        }

        void ISerializable.Serialize(IWriter writer)
        {
            writer.Write(X);
            writer.Write(Y);
            writer.Write(Z);
        }
    }
}
