示例#1
0
 protected override void DeserializeImpl(IIncomingMessageStream messageStream)
 {
     SwingDirection = messageStream.ReadFloat();
     HitZombies     = messageStream.ReadEntityIds();
     HitHumans      = messageStream.ReadEntityIds();
     HitScenery     = messageStream.ReadEntityIds();
     StartPoint     = messageStream.ReadVector();
     EntityUser     = messageStream.ReadEntityId();
 }
示例#2
0
        private static List <BulletEffectData> ReadBulletEffects(IIncomingMessageStream messageStream, short count)
        {
            var ret = new List <BulletEffectData>(count);

            for (var i = 0; i < count; ++i)
            {
                var item = new BulletEffectData();
                item.EndPoint = messageStream.ReadVector();
                item.Rotation = messageStream.ReadFloat();
                item.Effect   = messageStream.ReadByte();

                ret.Add(item);
            }

            return(ret);
        }
示例#3
0
 protected override void DeserializeImpl(IIncomingMessageStream messageStream)
 {
     Position       = messageStream.ReadVector();
     Rotation       = messageStream.ReadFloat();
     MovementVector = messageStream.ReadVector();
 }