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