public HostBanPlayerEventArgs(Func <Task> continuation, int step, HMessage packet)
     : base(continuation, step, packet)
 {
     Id     = packet.ReadInteger();
     RoomId = packet.ReadInteger();
     Ban    = SKore.ToBan(packet.ReadString());
 }
Beispiel #2
0
        public HostBanPlayerEventArgs(HMessage packet)
        {
            _packet = packet;
            Header  = _packet.Header;

            PlayerId = _packet.ReadInt(0);
            RoomId   = _packet.ReadInt(4);
            Ban      = SKore.ToBan(_packet.ReadString(8));
        }