private void WriteBulletEffects(IOutgoingMessageStream messageStream) { foreach (var item in BulletEffects) { messageStream.Write(item.EndPoint); messageStream.WriteFloat(item.Rotation); messageStream.WriteByte(item.Effect); } }
protected override void SerializeImpl(IOutgoingMessageStream messageStream) { messageStream.WriteFloat(SwingDirection); messageStream.Write(HitZombies); messageStream.Write(HitHumans); messageStream.Write(HitScenery); messageStream.Write(StartPoint); messageStream.WriteEntityId(EntityUser); }
protected override void SerializeImpl(IOutgoingMessageStream messageStream) { messageStream.Write(Position); messageStream.WriteFloat(Rotation); messageStream.Write(MovementVector); }