Inheritance: global::ProtoBuf.IExtensible
Ejemplo n.º 1
0
        public void Launch(uint appId) {
            App = appId;
            
            var playing = new CMsgClientGamesPlayed.GamePlayed {
                game_id = appId,
                game_extra_info = "Dota 2",
                process_id = 6421,
                game_flags = 0,
//                owner_id = Bot.User.SteamID.AccountID
            };
            Bot.Play(playing);
        }
Ejemplo n.º 2
0
		internal void PlayGame(string gameName) {
			if (!Client.IsConnected) {
				return;
			}

			var request = new ClientMsgProtobuf<CMsgClientGamesPlayed>(EMsg.ClientGamesPlayed);

			var gamePlayed = new CMsgClientGamesPlayed.GamePlayed();
			if (!string.IsNullOrEmpty(gameName)) {
				gamePlayed.game_id = new GameID() {
					AppType = GameID.GameType.Shortcut,
					ModID = uint.MaxValue
				};
				gamePlayed.game_extra_info = gameName;
			}

			request.Body.games_played.Add(gamePlayed);

			Client.Send(request);
		}
Ejemplo n.º 3
0
        public void ConnectToGC(ulong appId)
        {
            var playMsg = new ClientMsgProtobuf<CMsgClientGamesPlayed>(
                EMsg.ClientGamesPlayedWithDataBlob);
            var game = new CMsgClientGamesPlayed.GamePlayed
            {
                game_id = new GameID(appId),
                game_extra_info = "Mist - Portable Steam Client",
            };

            playMsg.Body.games_played.Add(game);
            SteamClient.Send(playMsg);
        }