// Token: 0x06001837 RID: 6199 RVA: 0x00089128 File Offset: 0x00087528
        public void write(ICommunityEntity entity, byte[] data, ulong length)
        {
            SteamworksCommunityEntity steamworksCommunityEntity = (SteamworksCommunityEntity)entity;
            CSteamID steamID = steamworksCommunityEntity.steamID;

            SteamGameServerNetworking.SendP2PPacket(steamID, data, (uint)length, EP2PSend.k_EP2PSendUnreliable, 0);
        }
        // Token: 0x06001838 RID: 6200 RVA: 0x00089150 File Offset: 0x00087550
        public void write(ICommunityEntity entity, byte[] data, ulong length, ESendMethod method, int channel)
        {
            SteamworksCommunityEntity steamworksCommunityEntity = (SteamworksCommunityEntity)entity;
            CSteamID steamID = steamworksCommunityEntity.steamID;

            switch (method)
            {
            case ESendMethod.RELIABLE:
                SteamGameServerNetworking.SendP2PPacket(steamID, data, (uint)length, EP2PSend.k_EP2PSendReliableWithBuffering, channel);
                return;

            case ESendMethod.RELIABLE_NODELAY:
                SteamGameServerNetworking.SendP2PPacket(steamID, data, (uint)length, EP2PSend.k_EP2PSendReliable, channel);
                return;

            case ESendMethod.UNRELIABLE:
                SteamGameServerNetworking.SendP2PPacket(steamID, data, (uint)length, EP2PSend.k_EP2PSendUnreliable, channel);
                return;

            case ESendMethod.UNRELIABLE_NODELAY:
                SteamGameServerNetworking.SendP2PPacket(steamID, data, (uint)length, EP2PSend.k_EP2PSendUnreliableNoDelay, channel);
                return;

            default:
                return;
            }
        }
 // Token: 0x06001861 RID: 6241 RVA: 0x000895A2 File Offset: 0x000879A2
 private void triggerUserStatisticsRequestReady(ICommunityEntity entityID)
 {
     if (this.onUserStatisticsRequestReady != null)
     {
         this.onUserStatisticsRequestReady(entityID);
     }
 }
Exemplo n.º 4
0
        public void write(ICommunityEntity entity, byte[] data, ulong length, ESendMethod method, int channel)
        {
            SteamworksCommunityEntity steamworksCommunityEntity = (SteamworksCommunityEntity)entity;
            CSteamID steamID = steamworksCommunityEntity.steamID;

            switch (method)
            {
            case ESendMethod.RELIABLE:
                SteamGameServerNetworking.SendP2PPacket(steamID, data, (uint)length, 3, channel);
                return;

            case ESendMethod.RELIABLE_NODELAY:
                SteamGameServerNetworking.SendP2PPacket(steamID, data, (uint)length, 2, channel);
                return;

            case ESendMethod.UNRELIABLE:
                SteamGameServerNetworking.SendP2PPacket(steamID, data, (uint)length, 0, channel);
                return;

            case ESendMethod.UNRELIABLE_NODELAY:
                SteamGameServerNetworking.SendP2PPacket(steamID, data, (uint)length, 1, channel);
                return;

            default:
                return;
            }
        }
        // Token: 0x06001836 RID: 6198 RVA: 0x000890D4 File Offset: 0x000874D4
        public bool read(out ICommunityEntity entity, byte[] data, out ulong length, int channel)
        {
            entity = SteamworksCommunityEntity.INVALID;
            length = 0UL;
            uint num;

            if (!SteamGameServerNetworking.IsP2PPacketAvailable(out num, channel) || (ulong)num > (ulong)((long)data.Length))
            {
                return(false);
            }
            CSteamID newSteamID;

            if (!SteamGameServerNetworking.ReadP2PPacket(data, num, out num, out newSteamID, channel))
            {
                return(false);
            }
            entity = new SteamworksCommunityEntity(newSteamID);
            length = (ulong)num;
            return(true);
        }
Exemplo n.º 6
0
 // Token: 0x06001825 RID: 6181 RVA: 0x00088E7E File Offset: 0x0008727E
 public void write(ICommunityEntity entity, byte[] data, ulong length, ESendMethod method, int channel)
 {
 }
Exemplo n.º 7
0
 // Token: 0x06001824 RID: 6180 RVA: 0x00088E7C File Offset: 0x0008727C
 public void write(ICommunityEntity entity, byte[] data, ulong length)
 {
 }