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