Exemple #1
0
 public CmdGainTournamentUpgrade(string[] serialized)
 {
     this.m_player                 = GameLogic.Binder.GameState.Player;
     this.m_id                     = LangUtil.FirstLetterToUpper(serialized[0]);
     this.m_epicVersion            = UnityEngine.Random.Range((float)0f, (float)1f) <= 0.5f;
     this.m_numMilestonesCompleted = 1;
 }
Exemple #2
0
 public CmdGainPet(string[] serialized)
 {
     this.m_player  = Binder.GameState.Player;
     this.m_petId   = LangUtil.FirstLetterToUpper(serialized[0]);
     this.m_count   = 5;
     this.m_cheated = false;
 }
Exemple #3
0
        public CmdGainItemInstance(string[] serialized)
        {
            this.m_character = Binder.GameState.Player.ActiveCharacter;
            string itemId = LangUtil.FirstLetterToUpper(serialized[0]);

            this.m_itemInstance = new ItemInstance(itemId, 1, 0, Binder.GameState.ActiveDungeon.Floor, this.m_character.OwningPlayer);
        }
 public CmdCheatChest(string[] serialized)
 {
     if (serialized.Length > 0)
     {
         this.m_predefinedDropRollId = LangUtil.FirstLetterToUpper(serialized[0]);
     }
     else
     {
         this.m_predefinedDropRollId = null;
     }
 }
Exemple #5
0
 public CmdCheatLanguage(string[] serialized)
 {
     try
     {
         string str = LangUtil.FirstLetterToUpper(serialized[0]);
         this.m_language = (SystemLanguage)((int)Enum.Parse(typeof(SystemLanguage), str));
     }
     catch
     {
         this.m_language = SystemLanguage.Unknown;
     }
 }
Exemple #6
0
 public CmdCheatDeviceQuality(string[] serialized)
 {
     try
     {
         string str = LangUtil.FirstLetterToUpper(serialized[0].ToLower());
         this.m_deviceQualityType = (DeviceQualityType)((int)Enum.Parse(typeof(DeviceQualityType), str));
     }
     catch
     {
         this.m_deviceQualityType = DeviceQualityType.Auto;
     }
 }
 public HandleRewardShopEntry(Dictionary <string, object> parameters)
 {
     if (parameters != null)
     {
         object obj2 = null;
         parameters.TryGetValue("Id", out obj2);
         if (obj2 != null)
         {
             this.m_id = obj2 as string;
             this.m_id = LangUtil.FirstLetterToUpper(this.m_id);
         }
     }
 }
 public HandleRewardPet(Dictionary <string, object> parameters)
 {
     if (parameters != null)
     {
         object obj2 = null;
         parameters.TryGetValue("Id", out obj2);
         if (obj2 != null)
         {
             this.m_id = obj2 as string;
             this.m_id = LangUtil.FirstLetterToUpper(this.m_id);
         }
         object obj3 = null;
         parameters.TryGetValue("Amount", out obj3);
         if (obj3 != null)
         {
             int.TryParse(obj3.ToString(), out this.m_amount);
         }
     }
 }
Exemple #9
0
 public CmdGainRunestone(string[] serialized)
 {
     this.m_player      = Binder.GameState.Player;
     this.m_runestoneId = LangUtil.FirstLetterToUpper(serialized[0]);
     this.m_cheated     = true;
 }
Exemple #10
0
 public CmdActivateBoost(string[] serialized)
 {
     this.m_player    = GameLogic.Binder.GameState.Player;
     this.m_boostType = (BoostType)((int)Enum.Parse(typeof(BoostType), LangUtil.FirstLetterToUpper(serialized[0])));
 }
Exemple #11
0
 public CmdGainAugmentation(string[] serialized)
 {
     this.m_player = Binder.GameState.Player;
     this.m_id     = LangUtil.FirstLetterToUpper(serialized[0]);
 }
Exemple #12
0
 public CmdGainPotions(string[] serialized)
 {
     this.m_character  = Binder.GameState.Player.ActiveCharacter;
     this.m_potionType = (PotionType)((int)Enum.Parse(typeof(PotionType), LangUtil.FirstLetterToUpper(serialized[0].ToLower())));
     this.m_amount     = 1;
 }
Exemple #13
0
 public CmdGainResources(string[] serialized)
 {
     this.m_player       = GameLogic.Binder.GameState.Player;
     this.m_resourceType = (ResourceType)((int)Enum.Parse(typeof(ResourceType), LangUtil.FirstLetterToUpper(serialized[0])));
     this.m_amount       = double.Parse(serialized[1]);
 }
Exemple #14
0
 public CmdInspectPet(string[] serialized)
 {
     this.m_player  = Binder.GameState.Player;
     this.m_petId   = LangUtil.FirstLetterToUpper(serialized[0]);
     this.m_cheated = true;
 }
Exemple #15
0
 public CmdLevelUpPet(string[] serialized)
 {
     this.m_player  = GameLogic.Binder.GameState.Player;
     this.m_petId   = LangUtil.FirstLetterToUpper(serialized[0]);
     this.m_cheated = true;
 }