コード例 #1
0
        void HandleAccountInfo(IPacketMsg packetMsg)
        {
            var accInfo = new ClientMsgProtobuf <CMsgClientAccountInfo>(packetMsg);

            var callback = new AccountInfoCallback(accInfo.Body);

            this.Client.PostCallback(callback);
        }
コード例 #2
0
ファイル: SteamUser.cs プロジェクト: Starbucksbot/SteamBot
        void HandleAccountInfo(IPacketMsg packetMsg)
        {
            var accInfo = new ClientMsgProtobuf <CMsgClientAccountInfo>(packetMsg);

#if STATIC_CALLBACKS
            var callback = new AccountInfoCallback(Client, accInfo.Body);
            SteamClient.PostCallback(callback);
#else
            var callback = new AccountInfoCallback(accInfo.Body);
            this.Client.PostCallback(callback);
#endif
        }
コード例 #3
0
ファイル: AccountInfoPlugin.cs プロジェクト: nanalucky/Pet46
 public void SetAccountCallbackListener(Action <string,string> onGetAccountComplete,Action onGetAccountFail)
 {
     #if UNITY_ANDROID
     if(Application.platform == RuntimePlatform.Android){
         AccountInfoCallback  accountCallback = new AccountInfoCallback();
         accountCallback.onGetAccountComplete = onGetAccountComplete;
         accountCallback.onGetAccountFail = onGetAccountFail;
         jo.CallStatic("setAccountCallbackListener",accountCallback);
     }else{
         AUP.Utils.Message(TAG,"warning: must run in actual android device");
     }
     #endif
 }
コード例 #4
0
 public void SetAccountCallbackListener(Action <string, string> onGetAccountComplete, Action onGetAccountFail)
 {
             #if UNITY_ANDROID
     if (Application.platform == RuntimePlatform.Android)
     {
         AccountInfoCallback accountCallback = new AccountInfoCallback();
         accountCallback.onGetAccountComplete = onGetAccountComplete;
         accountCallback.onGetAccountFail     = onGetAccountFail;
         jo.CallStatic("setAccountCallbackListener", accountCallback);
     }
     else
     {
         AUP.Utils.Message(TAG, "warning: must run in actual android device");
     }
             #endif
 }
コード例 #5
0
ファイル: SteamUser.cs プロジェクト: stil/SteamKit
        void HandleAccountInfo( IPacketMsg packetMsg )
        {
            var accInfo = new ClientMsgProtobuf<CMsgClientAccountInfo>( packetMsg );

            var callback = new AccountInfoCallback( accInfo.Body );
            this.Client.PostCallback( callback );
        }
コード例 #6
0
ファイル: SteamUser.cs プロジェクト: Top-Cat/SteamBot
        void HandleAccountInfo( IPacketMsg packetMsg )
        {
            var accInfo = new ClientMsgProtobuf<CMsgClientAccountInfo>( packetMsg );

#if STATIC_CALLBACKS
            var callback = new AccountInfoCallback( Client, accInfo.Body );
            SteamClient.PostCallback( callback );
#else
            var callback = new AccountInfoCallback( accInfo.Body );
            this.Client.PostCallback( callback );
#endif
        }