public override void Write(IStarboundStream stream) { stream.WriteString(WarptoWorld); stream.WriteString(WarptoPlayer); stream.WriteInt32((int)WarpAlias); stream.WriteBoolean(WarpActionInvalid); }
public override void Write(IStarboundStream stream) { stream.WriteBoolean(Success); stream.WriteVLQ(ClientId); stream.WriteString(RejectionReason); stream.WriteVLQ((ulong)CelestialInfos.Count); foreach (CelestialInfo cInfo in CelestialInfos) { cInfo.WriteTo(stream); } }
public void WriteTo(IStarboundStream stream) { if (Value == null) { stream.WriteUInt8(1); } else if (Value is double) { stream.WriteInt8(2); stream.WriteDouble((double)Value); } else if (Value is bool) { stream.WriteInt8(3); stream.WriteBoolean((bool)Value); } else if (Value is ulong) { stream.WriteInt8(4); stream.WriteVLQ((ulong)Value); } else if (Value is string) { stream.WriteInt8(5); stream.WriteString((string)Value); } else if (Value is Variant[]) { stream.WriteInt8(6); var array = (Variant[])Value; stream.WriteVLQ((ulong)array.Length); for (int i = 0; i < array.Length; i++) { array[i].WriteTo(stream); } } else if (Value is VariantDict) { stream.WriteInt8(7); var dict = (VariantDict)Value; stream.WriteVLQ((ulong)dict.Count); foreach (var kvp in dict) { stream.WriteString(kvp.Key); kvp.Value.WriteTo(stream); } } }
public void WriteTo(IStarboundStream stream) { if (Value == null) { stream.WriteUInt8(0); } else if (Value is float) { stream.WriteInt8(1); stream.WriteSingle((float)Value); } else if (Value is bool) { stream.WriteInt8(2); stream.WriteBoolean((bool)Value); } else if (Value is int) { stream.WriteInt8(3); stream.WriteInt32((int)Value); } else if (Value is string) { stream.WriteInt8(4); stream.WriteString((string)Value); } else if (Value is Json[]) { stream.WriteInt8(5); var array = (Json[])Value; stream.WriteVLQ((ulong)array.Length); for (var i = 0; i < array.Length; i++) { array[i].WriteTo(stream); } } else if (Value is JsonDict) { stream.WriteInt8(7); var dict = (JsonDict)Value; stream.WriteVLQ((ulong)dict.Count); foreach (var kvp in dict) { stream.WriteString(kvp.Key); kvp.Value.WriteTo(stream); } } }
public override void Write(IStarboundStream stream) { stream.WriteSignedVLQ(EntityId); stream.WriteBoolean(Death); stream.Write(Unknown, 0, Unknown.Length); }
public override void Write(IStarboundStream stream) { stream.WriteBoolean(success); stream.Write(finishwriting, 0, finishwriting.Length); //stream.WriteBoolean(WarpActionInvalid); }
public override void Write(IStarboundStream stream) { stream.WriteUInt16(DungeonId); stream.WriteBoolean(IsProtected); }