public override void OnDeserialize(BitBuffer d) { this.levelIndex = d.ReadByte(); this.count = (int)d.ReadUShort(); this.type = PhysicsParticle.ConvertNetType((byte)d.ReadBits(typeof(byte), 4)); this.data = d.ReadBitBuffer(); }
public override void OnDeserialize(BitBuffer d) { base.OnDeserialize(d); this._levelIndex = d.ReadByte(); byte num = d.ReadByte(); for (int index = 0; index < (int)num; ++index) { NMFireBullet nmFireBullet = new NMFireBullet(); BitBuffer msg = d.ReadBitBuffer(); nmFireBullet.OnDeserialize(msg); AmmoType instance = Activator.CreateInstance(AmmoType.indexTypeMap[this.ammoType]) as AmmoType; instance.ReadAdditionalData(d); nmFireBullet.typeInstance = instance; this._fireEvents.Add(nmFireBullet); } }
public override void OnDeserialize(BitBuffer d) { this.address = new IPAddress(d.ReadBitBuffer().buffer); this.port = d.ReadInt(); }
public override void OnDeserialize(BitBuffer d) { this.count = (int)d.ReadUShort(); this.data = d.ReadBitBuffer(); }
public override void OnDeserialize(BitBuffer msg) { base.OnDeserialize(msg); DataTransferManager.OnDataRecieved(connection, index, msg.ReadBitBuffer(), transferSession, last); }