protected override void DeserializeImpl(IIncomingMessageStream messageStream) { SwingDirection = messageStream.ReadFloat(); HitZombies = messageStream.ReadEntityIds(); HitHumans = messageStream.ReadEntityIds(); HitScenery = messageStream.ReadEntityIds(); StartPoint = messageStream.ReadVector(); EntityUser = messageStream.ReadEntityId(); }
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); }
protected override void DeserializeImpl(IIncomingMessageStream messageStream) { Position = messageStream.ReadVector(); Rotation = messageStream.ReadFloat(); MovementVector = messageStream.ReadVector(); }