Пример #1
0
        public PositionMessage(UdpDataReader reader)
        {
            if (reader.PeekByte() != (byte)MessageTypes.Position)
            {
                throw new NotSupportedException();
            }

            reader.GetByte();

            Name             = reader.GetString();
            X                = reader.GetFloat();
            Y                = reader.GetFloat();
            Z                = reader.GetFloat();
            Rotation         = reader.GetFloat();
            Speed            = reader.GetFloat();
            CurrentAnimation = reader.GetInt();
        }