Beispiel #1
0
        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();
        }
Beispiel #2
0
        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);
        }