Asgard.Core.Network.Bitstream.ReadBool C# (CSharp) Method

ReadBool() public method

public ReadBool ( ) : bool
return bool
        public bool ReadBool()
        {
            return _buffer.ReadBoolean();
        }

Usage Example

Esempio n. 1
0
        public override void Deserialize(Bitstream msg)
        {
            State = new List<PlayerStateData>();
            int count = msg.ReadUInt16();
            for (int i = 0; i < count; ++i)
            {
                var o = new PlayerStateData();
                o.Forward = msg.ReadBool();
                o.Back = msg.ReadBool();
                o.Left = msg.ReadBool();
                o.Right = msg.ReadBool();

                o.Position = msg.ReadVector2();
                o.SimTick = (uint)msg.ReadInt32();

                State.Add(o);
            }
            SnapId = msg.ReadInt32();
        }