Exemple #1
0
        public override void Write(IStarboundStream stream)
        {
            stream.Write(AssetDigest, 0, AssetDigest.Length);

            /*
             * stream.WriteUInt8Array(AssetDigest);
             * stream.WriteUInt8Array(UUID);
             * stream.WriteString(PlayerName);
             * stream.WriteString(Species);
             * stream.Write(Shipworld,0,Shipworld.Length);
             *
             */

            //  ShipUpgrade.WriteTo(stream);
            //  ShipUpgrade.WriteTo(stream);
            // stream.WriteString(Account);

            /*
             * stream.WriteUInt8Array(AssetDigest);
             * //   stream.WriteVariant(Claim);
             * stream.WriteBoolean(UUID != null);
             * if (UUID != null)
             *  stream.WriteUInt8Array(UUID, false);
             * stream.WriteString(PlayerName);
             * stream.WriteString(Species);
             * stream.WriteUInt8Array(Shipworld);
             * //todo shipupgrades
             *
             * stream.WriteString(Account);
             * */
        }
Exemple #2
0
        public void WriteTo(IStarboundStream stream)
        {
            stream.WriteInt32(planetOrbitalLevels);
            stream.WriteInt32(satelliteOrbitalLevels);
            stream.WriteInt32(ChunkSize);
            xyCoordRange.WriteTo(stream);
            stream.Write(zCoordRange, 0, zCoordRange.Length);
            // zCoordRange.WriteTo(stream);
            //  stream.WriteInt32(zCoordRange);

            /*
             * stream.WriteInt32(OrbitalLevels);
             * stream.WriteInt32(ChunkSize);
             * stream.WriteInt32(XyCoordinateMin);
             * stream.WriteInt32(XyCoordinateMax);
             * stream.WriteInt32(ZCoordinateMin);
             * stream.WriteInt32(ZCoordinateMax);
             * stream.WriteVLQ((ulong)Sectors.Count);
             *
             * foreach (Sector sector in Sectors)
             * {
             *  sector.WriteTo(stream);
             * }
             */
        }
Exemple #3
0
 public override void Write(IStarboundStream stream)
 {
     /*
      * stream.WriteString(WarptoWorld);
      * stream.WriteString(WarptoPlayer);
      */
     stream.Write(poop, 0, poop.Length);
     // stream.WriteUInt8((byte) WarpAlias);
 }
Exemple #4
0
 public override void Write(IStarboundStream stream)
 {
     /*
      * stream.WriteInt32(entityID);
      * stream.WriteString(function);
      */
     // stream.WriteUInt8Array(ScriptBytes);
     stream.Write(ScriptBytes, 0, ScriptBytes.Length);
 }
Exemple #5
0
        public override void Write(IStarboundStream stream)
        {
            stream.Write(temp, 0, temp.Length);

            /*
             * foreach (var vector in tilePositions)
             * {
             * vector.WriteTo(stream);
             * }
             */
        }
        public override void Write(IStarboundStream stream)
        {
            Position.WriteTo(stream);
            stream.Write(temp, 0, temp.Length);

            /*
             * foreach (var sTile in netTile)
             * {
             * sTile.WriteTo(stream);
             * }
             */
        }
Exemple #7
0
 public override void Write(IStarboundStream stream)
 {
     /*
      * stream.WriteVariant(Planet);
      * stream.WriteVariant(WorldStructure);
      * stream.WriteUInt8Array(Sky);
      * stream.WriteUInt8Array(Weather);
      * stream.WriteSingle(SpawnX);
      * stream.WriteSingle(SpawnY);
      * stream.WriteVariant(WorldProperties);
      * stream.WriteUInt32(ClientId);
      * stream.WriteBoolean(Local);
      */
     stream.Write(Unknown, 0, Unknown.Length);
 }
Exemple #8
0
 public override void Write(IStarboundStream stream)
 {
     stream.WriteSignedVLQ(EntityId);
     stream.Write(Unknown, 0, Unknown.Length);
 }
Exemple #9
0
 public override void Write(IStarboundStream stream)
 {
     stream.Write(worldClientStateDelta, 0, worldClientStateDelta.Length);
 }
Exemple #10
0
 public override void Write(IStarboundStream stream)
 {
     stream.Write(unknown, 0, unknown.Length);
 }
Exemple #11
0
 public override void Write(IStarboundStream stream)
 {
     stream.Write(Data, 0, Data.Length);
 }
 public override void Write(IStarboundStream stream)
 {
     stream.Write(modificationList, 0, modificationList.Length);
 }
Exemple #13
0
 public override void Write(IStarboundStream stream)
 {
     stream.Write(Unknown, 0, Unknown.Length);
     //  Itemdescriptor.WriteTo(stream);
 }
Exemple #14
0
 public override void Write(IStarboundStream stream)
 {
     // stream.WriteSignedVLQ(Time);
     stream.Write(TimeBytes, 0, TimeBytes.Length);
 }
Exemple #15
0
 public override void Write(IStarboundStream stream)
 {
     //StructureData.WriteTo(stream);
     stream.Write(sdata, 0, sdata.Length);
 }
 public override void Write(IStarboundStream stream)
 {
     stream.WriteBoolean(success);
     stream.Write(finishwriting, 0, finishwriting.Length);
     //stream.WriteBoolean(WarpActionInvalid);
 }