Exemplo n.º 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);
        }
Exemplo n.º 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);
             */
        }
Exemplo n.º 3
0
 public override void Write(IStarboundStream stream)
 {
     stream.WriteSignedVLQ(EntityId);
     stream.Write(Unknown, 0, Unknown.Length);
 }
Exemplo n.º 4
0
 public override void Write(IStarboundStream stream)
 {
     stream.WriteSignedVLQ(EntityId);
 }
Exemplo n.º 5
0
 public override void Write(IStarboundStream stream)
 {
     stream.WriteSignedVLQ(CausingEntityId);
     stream.WriteSignedVLQ(TargetEntityId);
 }
Exemplo n.º 6
0
 public virtual void WriteTo(IStarboundStream stream)
 {
     stream.WriteUInt8((byte)EntityType);
     stream.WriteUInt8Array(StoreData);
     stream.WriteSignedVLQ(EntityId);
 }