Beispiel #1
0
        public override void Read(IStarboundStream stream)
        {
            Success         = stream.ReadBoolean();
            ClientId        = stream.ReadVLQ();
            RejectionReason = stream.ReadString();
            CelestialInfos  = new List <CelestialInfo>();

            ulong length = stream.ReadVLQ();

            for (ulong i = 0; i < length; i++)
            {
                CelestialInfos.Add(CelestialInfo.FromStream(stream));
            }
        }
Beispiel #2
0
        public override void Read(IStarboundStream stream)
        {
            ClientId = stream.ReadUInt32();
            UUID     = stream.ReadUInt8Array(16);
            cInfo    = CelestialInfo.FromStream(stream);

            /*
             * CelestialInfos = new List<CelestialInfo>();
             *
             * ulong length = stream.ReadVLQ();
             *
             * for (ulong i = 0; i < length; i++)
             * {
             *  CelestialInfos.Add(CelestialInfo.FromStream(stream));
             * }
             */
        }