Beispiel #1
0
        public override void WriteTo(IStarboundStream stream)
        {
            stream.WriteUInt8((byte)EntityType);

            using (StarboundStream s = new StarboundStream())
            {
                s.WriteString(Object);
                s.WriteVariant(Information);
                s.WriteUInt8Array(Unknown, false);

                stream.WriteUInt8Array(s.ToArray());
            }

            stream.WriteSignedVLQ(EntityId);
        }
Beispiel #2
0
        public override void Write(IStarboundStream stream)
        {
            stream.WriteSignedVLQ(CauseEntityId);
            DamageN.WriteTo(stream);

            /*
             * stream.WriteSignedVLQ(TargetEntityId);
             * stream.WriteSignedVLQ(PositionX * 100);
             * stream.WriteSignedVLQ(PositionY * 100);
             * stream.WriteSignedVLQ(Damage * 100);
             * stream.WriteUInt8(DamageKind);
             * stream.WriteString(DamageSourceKind);
             * stream.WriteString(TargetMaterialKind);
             * stream.WriteUInt8(HitResultKind);
             */
        }
Beispiel #3
0
 public override void Write(IStarboundStream stream)
 {
     stream.WriteSignedVLQ(EntityId);
     stream.Write(Unknown, 0, Unknown.Length);
 }
Beispiel #4
0
 public override void Write(IStarboundStream stream)
 {
     stream.WriteSignedVLQ(EntityId);
 }
Beispiel #5
0
 public override void Write(IStarboundStream stream)
 {
     stream.WriteSignedVLQ(CausingEntityId);
     stream.WriteSignedVLQ(TargetEntityId);
 }
Beispiel #6
0
 public virtual void WriteTo(IStarboundStream stream)
 {
     stream.WriteUInt8((byte)EntityType);
     stream.WriteUInt8Array(StoreData);
     stream.WriteSignedVLQ(EntityId);
 }