public void ReadMe(Lidgren.Network.NetIncomingMessage msg) { EmmitingDirection = msg.ReadVector(); EmitingTime = msg.ReadFloat(); MinAngle = msg.ReadFloat(); MaxAngle = msg.ReadFloat(); MaxForce = msg.ReadFloat(); MinForce = msg.ReadFloat(); MaxLife = msg.ReadFloat(); MinLife = msg.ReadFloat(); MaxSize = msg.ReadFloat(); MinSize = msg.ReadFloat(); MaxRotation = msg.ReadFloat(); MinRotation = msg.ReadFloat(); MaxStartingRotation = msg.ReadFloat(); MinStartingRotation = msg.ReadFloat(); Delay = msg.ReadFloat(); SizeMultiplier = msg.ReadFloat(); Amount = msg.ReadInt32(); FireAll = msg.ReadBoolean(); Infinite = msg.ReadBoolean(); Position = msg.ReadVector(); Direction = msg.ReadVector(); Factory = NetDataHelper.ReadParticleFactory(msg); IList <IControl> controls = NetDataHelper.ReadControls(msg); foreach (IControl control in controls) { AddControl(control); } }