// 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: 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); }
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: 0x06001867 RID: 6247 RVA: 0x00089658 File Offset: 0x00087A58 private void onUserStatsReceived(UserStatsReceived_t callback) { if (callback.m_nGameID != (ulong)SteamUtils.GetAppID().m_AppId) { return; } SteamworksCommunityEntity entityID = new SteamworksCommunityEntity(callback.m_steamIDUser); this.triggerUserStatisticsRequestReady(entityID); }
// 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); }