Exemplo n.º 1
0
 public static void SubmitStat(string statistic, int value, bool force = false)
 {
     if (((App.CurrentPlattform == Plattform.Kongregate && App.State.ShouldSubmitScore) || (App.CurrentPlattform == Plattform.Kongregate && force)) && (force || !App.State.PossibleCheater))
     {
         Kongregate.CallAPIFunction(string.Format("kongregate.stats.submit('{0}', {1})", statistic, value));
     }
 }
Exemplo n.º 2
0
 public static void PurchaseItem(string item)
 {
     if (Kongregate.IsGuest)
     {
         Kongregate.ShowSignIn();
     }
     else
     {
         Kongregate.IsWaitingForPurchase      = true;
         App.State.PremiumBoni.ItemToPurchase = item;
         Log.Info("[Kongregate] Attempting purchase of " + item);
         Kongregate.CallAPIFunction(string.Format("purchaseItem('{0}')", item));
     }
 }
Exemplo n.º 3
0
 private static void CallAPIFunction(string functionCall)
 {
     Kongregate.CallAPIFunction(functionCall, null);
 }
Exemplo n.º 4
0
 public static void ShowIncentivizedAd()
 {
     Kongregate.CallAPIFunction("showIncentivizedAd()");
 }
Exemplo n.º 5
0
 public static void InitAdEventListener()
 {
     Kongregate.CallAPIFunction("initAdEventListener()");
 }
Exemplo n.º 6
0
 public static void GetUserItems2()
 {
     Kongregate.CallAPIFunction("getUserItems2()");
 }
Exemplo n.º 7
0
 public static void ShowSignIn()
 {
     Kongregate.CallAPIFunction("if(kongregate.services.isGuest()) kongregate.services.showSignInBox()");
 }
Exemplo n.º 8
0
 public static void CheckBoughtItems()
 {
     Kongregate.CallAPIFunction("getUserItems()");
 }