コード例 #1
0
 public override void OnLoginSuccessEvent(string sFlag,
                                          string sAccount, int iRoleId, string sRoleName, int iRoleLv, int iVipLv, int iGoldNum, string sFamilyName,
                                          string sServerId, string sServerName, string sZoneId, string sZoneFormatName, string sAccessToken, string sAccountCreateTime, string sRoleType, string sNoName)
 {
     CommunicateWithJava.GetInst().m_AJObj.Call("enterServer", sFlag,
                                                sAccount, iRoleId, sRoleName, iRoleLv, iVipLv, iGoldNum, sFamilyName,
                                                sServerId, sServerName, sZoneId, sZoneFormatName, sAccessToken, sAccountCreateTime, sRoleType, sNoName);
 }
コード例 #2
0
    public override void OnBuyEvent(string sGameTrade, SetBuyEventInfoCallback cb)
    {
        string sDiamond = "0";
        int    iPrice   = 0;

        cb(sGameTrade, ref sDiamond, ref iPrice);
        CommunicateWithJava.GetInst().m_AJObj.Call("onBuyEvent", sDiamond, iPrice);
    }
コード例 #3
0
 public override bool OnPay(int id, string sIAPID, int iPrice, string sName, int iCount,
                            string sAccount, int iRoleId, string sRoleName, int iRoleLv, int iVipLv, int iGoldNum, string sFamilyName,
                            string sServerId, string sServerName, string sZoneId, string sGoldName, string sSingleName)
 {
     CommunicateWithJava.GetInst().m_AJObj.Call("onPay", id, sIAPID, iPrice, sName, iCount,
                                                sAccount, iRoleId, sRoleName, iRoleLv, iVipLv, iGoldNum, sFamilyName,
                                                sServerId, sServerName, sZoneId, sGoldName, sSingleName, "", System.Guid.NewGuid().ToString());
     return(true);
 }
コード例 #4
0
 public override void OnLevelUpOrExpAddEvent(int iOldExp, int iRoleExp, int iOldLevel,
                                             string sAccount, int iRoleId, string sRoleName, int iRoleLv, int iVipLv, int iGoldNum, string sFamilyName,
                                             string sServerId, string sServerName, string sZoneId, string sZoneFormatName, string sAccessToken, string sAccountCreateTime, string sRoleType, string sNoName,
                                             long lServerTime)
 {
     CommunicateWithJava.GetInst().m_AJObj.Call("levelUp", iOldExp, iRoleExp, iOldLevel,
                                                sAccount, iRoleId, sRoleName, iRoleLv, iVipLv, iGoldNum, sFamilyName,
                                                sServerId, sServerName, sZoneId, sZoneFormatName, sAccessToken, sAccountCreateTime, sRoleType, sNoName,
                                                lServerTime);
 }
コード例 #5
0
 //----------------------------------------------------------------------------------
 public override void OnCreateRoleEvent()
 {
     CommunicateWithJava.GetInst().m_AJObj.Call("onRoleCreate");
 }
コード例 #6
0
 public override bool OnLogin()
 {
     //	Connecting.GetInst().Show();
     CommunicateWithJava.GetInst().m_AJObj.Call("onLogin");
     return(true);
 }
コード例 #7
0
 public override bool OnLogout()
 {
     CommunicateWithJava.GetInst().m_AJObj.Call("onLogout");
     return(true);
 }
コード例 #8
0
 public override bool OnExit()
 {
     return(CommunicateWithJava.GetInst().m_AJObj.Call <bool>("onExit"));
 }
コード例 #9
0
 public override void OnInit()
 {
     CommunicateWithJava.GetInst().m_AJObj.Call("onInit");
     TalkingDataGA.OnStart(ApplicationConst.talkingDataAppId, ApplicationConst.ChannelID);
 }