public static void Initialize( bool useUdp ) { SteamClient = new SteamClient( useUdp ? ProtocolType.Udp : ProtocolType.Tcp ); SteamFriends = SteamClient.GetHandler<SteamFriends>(); SteamUser = SteamClient.GetHandler<SteamUser>(); ChatManager = new ChatManager(); }
public static void Initialize(Settings settings) { Boolean useUdp = settings.Main.steam3_useUdp; SteamClient = new SteamClient( useUdp ? ProtocolType.Udp : ProtocolType.Tcp ); SteamFriends = SteamClient.GetHandler<SteamFriends>(); SteamUser = SteamClient.GetHandler<SteamUser>(); ChatManager = new ChatManager(settings); }