Beispiel #1
0
    public void doAction()
    {
        switch (this.actionClass)
        {
        case 0:
            this.nextEvent.checkEvent();
            return;

        case 1:
        {
            string key  = this.parameters[0].returnString(null);
            int    num2 = this.parameters[1].returnInt(null);
            switch (this.actionType)
            {
            case 0:
                if (!RCManager.intVariables.ContainsKey(key))
                {
                    RCManager.intVariables.Add(key, num2);
                    return;
                }
                RCManager.intVariables[key] = num2;
                return;

            case 1:
                if (!RCManager.intVariables.ContainsKey(key))
                {
                    this.callException("Variable not found: " + key);
                    return;
                }
                RCManager.intVariables[key] = (int)RCManager.intVariables[key] + num2;
                return;

            case 2:
                if (!RCManager.intVariables.ContainsKey(key))
                {
                    this.callException("Variable not found: " + key);
                    return;
                }
                RCManager.intVariables[key] = (int)RCManager.intVariables[key] - num2;
                return;

            case 3:
                if (!RCManager.intVariables.ContainsKey(key))
                {
                    this.callException("Variable not found: " + key);
                    return;
                }
                RCManager.intVariables[key] = (int)RCManager.intVariables[key] * num2;
                return;

            case 4:
                if (!RCManager.intVariables.ContainsKey(key))
                {
                    this.callException("Variable not found: " + key);
                    return;
                }
                RCManager.intVariables[key] = (int)RCManager.intVariables[key] / num2;
                return;

            case 5:
                if (!RCManager.intVariables.ContainsKey(key))
                {
                    this.callException("Variable not found: " + key);
                    return;
                }
                RCManager.intVariables[key] = (int)RCManager.intVariables[key] % num2;
                return;

            case 6:
                if (!RCManager.intVariables.ContainsKey(key))
                {
                    this.callException("Variable not found: " + key);
                    return;
                }
                RCManager.intVariables[key] = (int)Math.Pow((double)((int)RCManager.intVariables[key]), (double)num2);
                return;

            case 7:
            case 8:
            case 9:
            case 10:
            case 11:
                break;

            case 12:
                if (!RCManager.intVariables.ContainsKey(key))
                {
                    RCManager.intVariables.Add(key, UnityEngine.Random.Range(num2, this.parameters[2].returnInt(null)));
                    return;
                }
                RCManager.intVariables[key] = UnityEngine.Random.Range(num2, this.parameters[2].returnInt(null));
                return;

            default:
                return;
            }
            break;
        }

        case 2:
        {
            string str2  = this.parameters[0].returnString(null);
            bool   flag2 = this.parameters[1].returnBool(null);
            int    num3  = this.actionType;
            if (num3 != 0)
            {
                if (num3 != 11)
                {
                    if (num3 != 12)
                    {
                        return;
                    }
                    if (!RCManager.boolVariables.ContainsKey(str2))
                    {
                        RCManager.boolVariables.Add(str2, Convert.ToBoolean(UnityEngine.Random.Range(0, 2)));
                        return;
                    }
                    RCManager.boolVariables[str2] = Convert.ToBoolean(UnityEngine.Random.Range(0, 2));
                    return;
                }
                else
                {
                    if (!RCManager.boolVariables.ContainsKey(str2))
                    {
                        this.callException("Variable not found: " + str2);
                        return;
                    }
                    RCManager.boolVariables[str2] = !(bool)RCManager.boolVariables[str2];
                    return;
                }
            }
            else
            {
                if (!RCManager.boolVariables.ContainsKey(str2))
                {
                    RCManager.boolVariables.Add(str2, flag2);
                    return;
                }
                RCManager.boolVariables[str2] = flag2;
                return;
            }
        }

        case 3:
        {
            string str3 = this.parameters[0].returnString(null);
            int    num4 = this.actionType;
            if (num4 != 0)
            {
                switch (num4)
                {
                case 7:
                {
                    string str4 = string.Empty;
                    for (int i = 1; i < this.parameters.Length; i++)
                    {
                        str4 += this.parameters[i].returnString(null);
                    }
                    if (!RCManager.stringVariables.ContainsKey(str3))
                    {
                        RCManager.stringVariables.Add(str3, str4);
                        return;
                    }
                    RCManager.stringVariables[str3] = str4;
                    return;
                }

                case 8:
                {
                    string str5 = this.parameters[1].returnString(null);
                    if (!RCManager.stringVariables.ContainsKey(str3))
                    {
                        this.callException("No Variable");
                        return;
                    }
                    RCManager.stringVariables[str3] = (string)RCManager.stringVariables[str3] + str5;
                    return;
                }

                case 9:
                    this.parameters[1].returnString(null);
                    if (!RCManager.stringVariables.ContainsKey(str3))
                    {
                        this.callException("No Variable");
                        return;
                    }
                    RCManager.stringVariables[str3] = ((string)RCManager.stringVariables[str3]).Replace(this.parameters[1].returnString(null), this.parameters[2].returnString(null));
                    return;

                default:
                    return;
                }
            }
            else
            {
                string str6 = this.parameters[1].returnString(null);
                if (!RCManager.stringVariables.ContainsKey(str3))
                {
                    RCManager.stringVariables.Add(str3, str6);
                    return;
                }
                RCManager.stringVariables[str3] = str6;
                return;
            }
        }

        case 4:
        {
            string str7 = this.parameters[0].returnString(null);
            float  num5 = this.parameters[1].returnFloat(null);
            switch (this.actionType)
            {
            case 0:
                if (!RCManager.floatVariables.ContainsKey(str7))
                {
                    RCManager.floatVariables.Add(str7, num5);
                    return;
                }
                RCManager.floatVariables[str7] = num5;
                return;

            case 1:
                if (!RCManager.floatVariables.ContainsKey(str7))
                {
                    this.callException("No Variable");
                    return;
                }
                RCManager.floatVariables[str7] = (float)RCManager.floatVariables[str7] + num5;
                return;

            case 2:
                if (!RCManager.floatVariables.ContainsKey(str7))
                {
                    this.callException("No Variable");
                    return;
                }
                RCManager.floatVariables[str7] = (float)RCManager.floatVariables[str7] - num5;
                return;

            case 3:
                if (!RCManager.floatVariables.ContainsKey(str7))
                {
                    this.callException("No Variable");
                    return;
                }
                RCManager.floatVariables[str7] = (float)RCManager.floatVariables[str7] * num5;
                return;

            case 4:
                if (!RCManager.floatVariables.ContainsKey(str7))
                {
                    this.callException("No Variable");
                    return;
                }
                RCManager.floatVariables[str7] = (float)RCManager.floatVariables[str7] / num5;
                return;

            case 5:
                if (!RCManager.floatVariables.ContainsKey(str7))
                {
                    this.callException("No Variable");
                    return;
                }
                RCManager.floatVariables[str7] = (float)RCManager.floatVariables[str7] % num5;
                return;

            case 6:
                if (!RCManager.floatVariables.ContainsKey(str7))
                {
                    this.callException("No Variable");
                    return;
                }
                RCManager.floatVariables[str7] = (float)Math.Pow((double)((int)RCManager.floatVariables[str7]), (double)num5);
                return;

            case 7:
            case 8:
            case 9:
            case 10:
            case 11:
                break;

            case 12:
                if (!RCManager.floatVariables.ContainsKey(str7))
                {
                    RCManager.floatVariables.Add(str7, UnityEngine.Random.Range(num5, this.parameters[2].returnFloat(null)));
                    return;
                }
                RCManager.floatVariables[str7] = UnityEngine.Random.Range(num5, this.parameters[2].returnFloat(null));
                return;

            default:
                return;
            }
            break;
        }

        case 5:
        {
            string       str8   = this.parameters[0].returnString(null);
            PhotonPlayer player = this.parameters[1].returnPlayer(null);
            if (this.actionType == 0)
            {
                if (!RCManager.playerVariables.ContainsKey(str8))
                {
                    RCManager.playerVariables.Add(str8, player);
                    return;
                }
                RCManager.playerVariables[str8] = player;
                return;
            }
            break;
        }

        case 6:
        {
            string str9  = this.parameters[0].returnString(null);
            TITAN  titan = this.parameters[1].returnTitan(null);
            if (this.actionType == 0)
            {
                if (!RCManager.titanVariables.ContainsKey(str9))
                {
                    RCManager.titanVariables.Add(str9, titan);
                    return;
                }
                RCManager.titanVariables[str9] = titan;
                return;
            }
            break;
        }

        case 7:
        {
            PhotonPlayer targetPlayer = this.parameters[0].returnPlayer(null);
            switch (this.actionType)
            {
            case 0:
            {
                int iD = targetPlayer.ID;
                if (RCManager.heroHash.ContainsKey(iD))
                {
                    HERO hero = (HERO)RCManager.heroHash[iD];
                    hero.MarkDie();
                    hero.BasePV.RPC("netDie2", PhotonTargets.All, new object[]
                            {
                                -1,
                                this.parameters[1].returnString(null) + " "
                            });
                    return;
                }
                this.callException("Player Not Alive");
                return;
            }

            case 1:
                FengGameManagerMKII.FGM.BasePV.RPC("respawnHeroInNewRound", targetPlayer, new object[0]);
                return;

            case 2:
                FengGameManagerMKII.FGM.BasePV.RPC("spawnPlayerAtRPC", targetPlayer, new object[]
                    {
                        this.parameters[1].returnFloat(null),
                        this.parameters[2].returnFloat(null),
                        this.parameters[3].returnFloat(null)
                    });
                return;

            case 3:
            {
                int num6 = targetPlayer.ID;
                if (RCManager.heroHash.ContainsKey(num6))
                {
                    ((HERO)RCManager.heroHash[num6]).BasePV.RPC("moveToRPC", targetPlayer, new object[]
                            {
                                this.parameters[1].returnFloat(null),
                                this.parameters[2].returnFloat(null),
                                this.parameters[3].returnFloat(null)
                            });
                    return;
                }
                this.callException("Player Not Alive");
                return;
            }

            case 4:
                targetPlayer.SetCustomProperties(new Hashtable
                    {
                        {
                            "kills",
                            this.parameters[1].returnInt(null)
                        }
                    });
                return;

            case 5:
                targetPlayer.SetCustomProperties(new Hashtable
                    {
                        {
                            "deaths",
                            this.parameters[1].returnInt(null)
                        }
                    });
                return;

            case 6:
                targetPlayer.SetCustomProperties(new Hashtable
                    {
                        {
                            "max_dmg",
                            this.parameters[1].returnInt(null)
                        }
                    });
                return;

            case 7:
                targetPlayer.SetCustomProperties(new Hashtable
                    {
                        {
                            "total_dmg",
                            this.parameters[1].returnInt(null)
                        }
                    });
                return;

            case 8:
                targetPlayer.SetCustomProperties(new Hashtable
                    {
                        {
                            "name",
                            this.parameters[1].returnString(null)
                        }
                    });
                return;

            case 9:
                targetPlayer.SetCustomProperties(new Hashtable
                    {
                        {
                            "guildName",
                            this.parameters[1].returnString(null)
                        }
                    });
                return;

            case 10:
                targetPlayer.SetCustomProperties(new Hashtable
                    {
                        {
                            "RCteam",
                            this.parameters[1].returnInt(null)
                        }
                    });
                return;

            case 11:
                targetPlayer.SetCustomProperties(new Hashtable
                    {
                        {
                            "customInt",
                            this.parameters[1].returnInt(null)
                        }
                    });
                return;

            case 12:
                targetPlayer.SetCustomProperties(new Hashtable
                    {
                        {
                            "customBool",
                            this.parameters[1].returnBool(null)
                        }
                    });
                return;

            case 13:
                targetPlayer.SetCustomProperties(new Hashtable
                    {
                        {
                            "customString",
                            this.parameters[1].returnString(null)
                        }
                    });
                return;

            case 14:
                targetPlayer.SetCustomProperties(new Hashtable
                    {
                        {
                            "RCteam",
                            this.parameters[1].returnFloat(null)
                        }
                    });
                return;

            default:
                return;
            }
        }

        case 8:
            switch (this.actionType)
            {
            case 0:
            {
                TITAN    titan2     = this.parameters[0].returnTitan(null);
                object[] parameters = new object[]
                {
                    this.parameters[1].returnPlayer(null).ID,
                    this.parameters[2].returnInt(null)
                };
                titan2.BasePV.RPC("titanGetHit", titan2.BasePV.owner, parameters);
                return;
            }

            case 1:
                FengGameManagerMKII.FGM.SpawnTitanAction(this.parameters[0].returnInt(null), this.parameters[1].returnFloat(null), this.parameters[2].returnInt(null), this.parameters[3].returnInt(null));
                return;

            case 2:
                FengGameManagerMKII.FGM.SpawnTitanAtAction(this.parameters[0].returnInt(null), this.parameters[1].returnFloat(null), this.parameters[2].returnInt(null), this.parameters[3].returnInt(null), this.parameters[4].returnFloat(null), this.parameters[5].returnFloat(null), this.parameters[6].returnFloat(null));
                return;

            case 3:
            {
                TITAN titan3 = this.parameters[0].returnTitan(null);
                int   num7   = this.parameters[1].returnInt(null);
                titan3.currentHealth = num7;
                if (titan3.maxHealth == 0)
                {
                    titan3.maxHealth = titan3.currentHealth;
                }
                titan3.BasePV.RPC("labelRPC", PhotonTargets.AllBuffered, new object[]
                    {
                        titan3.currentHealth,
                        titan3.maxHealth
                    });
                return;
            }

            case 4:
            {
                TITAN titan4 = this.parameters[0].returnTitan(null);
                if (titan4.BasePV.IsMine)
                {
                    titan4.MoveTo(this.parameters[1].returnFloat(null), this.parameters[2].returnFloat(null), this.parameters[3].returnFloat(null));
                    return;
                }
                titan4.BasePV.RPC("moveToRPC", titan4.BasePV.owner, new object[]
                    {
                        this.parameters[1].returnFloat(null),
                        this.parameters[2].returnFloat(null),
                        this.parameters[3].returnFloat(null)
                    });
                return;
            }

            default:
                return;
            }

        case 9:
            switch (this.actionType)
            {
            case 0:
                FengGameManagerMKII.FGM.BasePV.RPC("Chat", PhotonTargets.All, new object[]
                {
                    this.parameters[0].returnString(null),
                    string.Empty
                });
                return;

            case 1:
                FengGameManagerMKII.FGM.GameWin();
                if (this.parameters[0].returnBool(null))
                {
                    RCManager.intVariables.Clear();
                    RCManager.boolVariables.Clear();
                    RCManager.stringVariables.Clear();
                    RCManager.floatVariables.Clear();
                    RCManager.playerVariables.Clear();
                    RCManager.titanVariables.Clear();
                }
                return;

            case 2:
                FengGameManagerMKII.FGM.GameLose();
                if (this.parameters[0].returnBool(null))
                {
                    RCManager.intVariables.Clear();
                    RCManager.boolVariables.Clear();
                    RCManager.stringVariables.Clear();
                    RCManager.floatVariables.Clear();
                    RCManager.playerVariables.Clear();
                    RCManager.titanVariables.Clear();
                }
                return;

            case 3:
                if (this.parameters[0].returnBool(null))
                {
                    RCManager.intVariables.Clear();
                    RCManager.boolVariables.Clear();
                    RCManager.stringVariables.Clear();
                    RCManager.floatVariables.Clear();
                    RCManager.playerVariables.Clear();
                    RCManager.titanVariables.Clear();
                }
                FengGameManagerMKII.FGM.RestartGame(false, false);
                return;

            default:
                return;
            }

        default:
            return;
        }
    }
Beispiel #2
0
    public void DoAction()
    {
        switch (actionClass)
        {
        case 0:
            nextEvent.CheckEvent();
            break;

        case 1:
        {
            string text5 = parameters[0].returnString(null);
            int    num3  = parameters[1].ReturnInt(null);
            switch (actionType)
            {
            case 7:
            case 8:
            case 9:
            case 10:
            case 11:
                break;

            case 0:
                if (!FengGameManagerMKII.IntVariables.ContainsKey(text5))
                {
                    FengGameManagerMKII.IntVariables.Add(text5, num3);
                }
                else
                {
                    FengGameManagerMKII.IntVariables[text5] = num3;
                }
                break;

            case 1:
                if (!FengGameManagerMKII.IntVariables.ContainsKey(text5))
                {
                    CallException("Variable not found: " + text5);
                }
                else
                {
                    FengGameManagerMKII.IntVariables[text5] = (int)FengGameManagerMKII.IntVariables[text5] + num3;
                }
                break;

            case 2:
                if (!FengGameManagerMKII.IntVariables.ContainsKey(text5))
                {
                    CallException("Variable not found: " + text5);
                }
                else
                {
                    FengGameManagerMKII.IntVariables[text5] = (int)FengGameManagerMKII.IntVariables[text5] - num3;
                }
                break;

            case 3:
                if (!FengGameManagerMKII.IntVariables.ContainsKey(text5))
                {
                    CallException("Variable not found: " + text5);
                }
                else
                {
                    FengGameManagerMKII.IntVariables[text5] = (int)FengGameManagerMKII.IntVariables[text5] * num3;
                }
                break;

            case 4:
                if (!FengGameManagerMKII.IntVariables.ContainsKey(text5))
                {
                    CallException("Variable not found: " + text5);
                }
                else
                {
                    FengGameManagerMKII.IntVariables[text5] = (int)FengGameManagerMKII.IntVariables[text5] / num3;
                }
                break;

            case 5:
                if (!FengGameManagerMKII.IntVariables.ContainsKey(text5))
                {
                    CallException("Variable not found: " + text5);
                }
                else
                {
                    FengGameManagerMKII.IntVariables[text5] = (int)FengGameManagerMKII.IntVariables[text5] % num3;
                }
                break;

            case 6:
                if (!FengGameManagerMKII.IntVariables.ContainsKey(text5))
                {
                    CallException("Variable not found: " + text5);
                }
                else
                {
                    FengGameManagerMKII.IntVariables[text5] = (int)Math.Pow((int)FengGameManagerMKII.IntVariables[text5], num3);
                }
                break;

            case 12:
                if (!FengGameManagerMKII.IntVariables.ContainsKey(text5))
                {
                    FengGameManagerMKII.IntVariables.Add(text5, UnityEngine.Random.Range(num3, parameters[2].ReturnInt(null)));
                }
                else
                {
                    FengGameManagerMKII.IntVariables[text5] = UnityEngine.Random.Range(num3, parameters[2].ReturnInt(null));
                }
                break;
            }
            break;
        }

        case 2:
        {
            string text4 = parameters[0].returnString(null);
            bool   flag  = parameters[1].returnBool(null);
            switch (actionType)
            {
            case 0:
                if (!FengGameManagerMKII.BoolVariables.ContainsKey(text4))
                {
                    FengGameManagerMKII.BoolVariables.Add(text4, flag);
                }
                else
                {
                    FengGameManagerMKII.BoolVariables[text4] = flag;
                }
                break;

            case 11:
                if (!FengGameManagerMKII.BoolVariables.ContainsKey(text4))
                {
                    CallException("Variable not found: " + text4);
                }
                else
                {
                    FengGameManagerMKII.BoolVariables[text4] = !(bool)FengGameManagerMKII.BoolVariables[text4];
                }
                break;

            case 12:
                if (!FengGameManagerMKII.BoolVariables.ContainsKey(text4))
                {
                    FengGameManagerMKII.BoolVariables.Add(text4, Convert.ToBoolean(UnityEngine.Random.Range(0, 2)));
                }
                else
                {
                    FengGameManagerMKII.BoolVariables[text4] = Convert.ToBoolean(UnityEngine.Random.Range(0, 2));
                }
                break;
            }
            break;
        }

        case 3:
        {
            string key3 = parameters[0].returnString(null);
            switch (actionType)
            {
            case 0:
            {
                string value2 = parameters[1].returnString(null);
                if (!FengGameManagerMKII.StringVariables.ContainsKey(key3))
                {
                    FengGameManagerMKII.StringVariables.Add(key3, value2);
                }
                else
                {
                    FengGameManagerMKII.StringVariables[key3] = value2;
                }
                break;
            }

            case 7:
            {
                string text3 = string.Empty;
                for (int i = 1; i < parameters.Length; i++)
                {
                    text3 += parameters[i].returnString(null);
                }
                if (!FengGameManagerMKII.StringVariables.ContainsKey(key3))
                {
                    FengGameManagerMKII.StringVariables.Add(key3, text3);
                }
                else
                {
                    FengGameManagerMKII.StringVariables[key3] = text3;
                }
                break;
            }

            case 8:
            {
                string str = parameters[1].returnString(null);
                if (!FengGameManagerMKII.StringVariables.ContainsKey(key3))
                {
                    CallException("No Variable");
                }
                else
                {
                    FengGameManagerMKII.StringVariables[key3] = (string)FengGameManagerMKII.StringVariables[key3] + str;
                }
                break;
            }

            case 9:
            {
                string text = parameters[1].returnString(null);
                if (!FengGameManagerMKII.StringVariables.ContainsKey(key3))
                {
                    CallException("No Variable");
                    break;
                }
                string text2 = (string)FengGameManagerMKII.StringVariables[key3];
                FengGameManagerMKII.StringVariables[key3] = text2.Replace(parameters[1].returnString(null), parameters[2].returnString(null));
                break;
            }
            }
            break;
        }

        case 4:
        {
            string key2 = parameters[0].returnString(null);
            float  num2 = parameters[1].returnFloat(null);
            switch (actionType)
            {
            case 7:
            case 8:
            case 9:
            case 10:
            case 11:
                break;

            case 0:
                if (!FengGameManagerMKII.FloatVariables.ContainsKey(key2))
                {
                    FengGameManagerMKII.FloatVariables.Add(key2, num2);
                }
                else
                {
                    FengGameManagerMKII.FloatVariables[key2] = num2;
                }
                break;

            case 1:
                if (!FengGameManagerMKII.FloatVariables.ContainsKey(key2))
                {
                    CallException("No Variable");
                }
                else
                {
                    FengGameManagerMKII.FloatVariables[key2] = (float)FengGameManagerMKII.FloatVariables[key2] + num2;
                }
                break;

            case 2:
                if (!FengGameManagerMKII.FloatVariables.ContainsKey(key2))
                {
                    CallException("No Variable");
                }
                else
                {
                    FengGameManagerMKII.FloatVariables[key2] = (float)FengGameManagerMKII.FloatVariables[key2] - num2;
                }
                break;

            case 3:
                if (!FengGameManagerMKII.FloatVariables.ContainsKey(key2))
                {
                    CallException("No Variable");
                }
                else
                {
                    FengGameManagerMKII.FloatVariables[key2] = (float)FengGameManagerMKII.FloatVariables[key2] * num2;
                }
                break;

            case 4:
                if (!FengGameManagerMKII.FloatVariables.ContainsKey(key2))
                {
                    CallException("No Variable");
                }
                else
                {
                    FengGameManagerMKII.FloatVariables[key2] = (float)FengGameManagerMKII.FloatVariables[key2] / num2;
                }
                break;

            case 5:
                if (!FengGameManagerMKII.FloatVariables.ContainsKey(key2))
                {
                    CallException("No Variable");
                }
                else
                {
                    FengGameManagerMKII.FloatVariables[key2] = (float)FengGameManagerMKII.FloatVariables[key2] % num2;
                }
                break;

            case 6:
                if (!FengGameManagerMKII.FloatVariables.ContainsKey(key2))
                {
                    CallException("No Variable");
                }
                else
                {
                    FengGameManagerMKII.FloatVariables[key2] = (float)Math.Pow((int)FengGameManagerMKII.FloatVariables[key2], num2);
                }
                break;

            case 12:
                if (!FengGameManagerMKII.FloatVariables.ContainsKey(key2))
                {
                    FengGameManagerMKII.FloatVariables.Add(key2, UnityEngine.Random.Range(num2, parameters[2].returnFloat(null)));
                }
                else
                {
                    FengGameManagerMKII.FloatVariables[key2] = UnityEngine.Random.Range(num2, parameters[2].returnFloat(null));
                }
                break;
            }
            break;
        }

        case 5:
        {
            string       key4   = parameters[0].returnString(null);
            PhotonPlayer value3 = parameters[1].returnPlayer(null);
            if (actionType == 0)
            {
                if (!FengGameManagerMKII.PlayerVariables.ContainsKey(key4))
                {
                    FengGameManagerMKII.PlayerVariables.Add(key4, value3);
                }
                else
                {
                    FengGameManagerMKII.PlayerVariables[key4] = value3;
                }
            }
            break;
        }

        case 6:
        {
            string key   = parameters[0].returnString(null);
            TITAN  value = parameters[1].returnTitan(null);
            if (actionType == 0)
            {
                if (!FengGameManagerMKII.TitanVariables.ContainsKey(key))
                {
                    FengGameManagerMKII.TitanVariables.Add(key, value);
                }
                else
                {
                    FengGameManagerMKII.TitanVariables[key] = value;
                }
            }
            break;
        }

        case 7:
        {
            PhotonPlayer photonPlayer = parameters[0].returnPlayer(null);
            switch (actionType)
            {
            case 0:
            {
                if (FengGameManagerMKII.HeroHash.ContainsKey(photonPlayer.Id))
                {
                    HERO hERO2 = (HERO)FengGameManagerMKII.HeroHash[photonPlayer.Id];
                    hERO2.MarkDead();
                    hERO2.photonView.RPC("netDie2", PhotonTargets.All, -1, parameters[1].returnString(null) + " ");
                }
                else
                {
                    CallException("Player Not Alive");
                }
                break;
            }

            case 1:
                FengGameManagerMKII.Instance.photonView.RPC("respawnHeroInNewRound", photonPlayer);
                break;

            case 2:
                FengGameManagerMKII.Instance.photonView.RPC("spawnPlayerAtRPC", photonPlayer, parameters[1].returnFloat(null), parameters[2].returnFloat(null), parameters[3].returnFloat(null));
                break;

            case 3:
            {
                int iD = photonPlayer.Id;
                if (FengGameManagerMKII.HeroHash.ContainsKey(iD))
                {
                    HERO hERO = (HERO)FengGameManagerMKII.HeroHash[iD];
                    hERO.photonView.RPC("moveToRPC", photonPlayer, parameters[1].returnFloat(null), parameters[2].returnFloat(null), parameters[3].returnFloat(null));
                }
                else
                {
                    CallException("Player Not Alive");
                }
                break;
            }

            case 4:
            {
                Hashtable hashtable11 = new Hashtable();
                hashtable11.Add(PhotonPlayerProperty.Kills, parameters[1].ReturnInt(null));
                photonPlayer.SetCustomProperties(hashtable11);
                break;
            }

            case 5:
            {
                Hashtable hashtable10 = new Hashtable();
                hashtable10.Add(PhotonPlayerProperty.Deaths, parameters[1].ReturnInt(null));
                photonPlayer.SetCustomProperties(hashtable10);
                break;
            }

            case 6:
            {
                Hashtable hashtable9 = new Hashtable();
                hashtable9.Add(PhotonPlayerProperty.MaxDamage, parameters[1].ReturnInt(null));
                photonPlayer.SetCustomProperties(hashtable9);
                break;
            }

            case 7:
            {
                Hashtable hashtable8 = new Hashtable();
                hashtable8.Add(PhotonPlayerProperty.TotalDamage, parameters[1].ReturnInt(null));
                photonPlayer.SetCustomProperties(hashtable8);
                break;
            }

            case 8:
            {
                Hashtable hashtable7 = new Hashtable();
                hashtable7.Add(PhotonPlayerProperty.Name, parameters[1].returnString(null));
                photonPlayer.SetCustomProperties(hashtable7);
                break;
            }

            case 9:
            {
                Hashtable hashtable6 = new Hashtable();
                hashtable6.Add(PhotonPlayerProperty.Guild, parameters[1].returnString(null));
                photonPlayer.SetCustomProperties(hashtable6);
                break;
            }

            case 10:
            {
                Hashtable hashtable5 = new Hashtable();
                hashtable5.Add(PhotonPlayerProperty.RCTeam, parameters[1].ReturnInt(null));
                photonPlayer.SetCustomProperties(hashtable5);
                break;
            }

            case 11:
            {
                Hashtable hashtable4 = new Hashtable();
                hashtable4.Add(PhotonPlayerProperty.CustomInt, parameters[1].ReturnInt(null));
                photonPlayer.SetCustomProperties(hashtable4);
                break;
            }

            case 12:
            {
                Hashtable hashtable3 = new Hashtable();
                hashtable3.Add(PhotonPlayerProperty.CustomBool, parameters[1].returnBool(null));
                photonPlayer.SetCustomProperties(hashtable3);
                break;
            }

            case 13:
            {
                Hashtable hashtable2 = new Hashtable();
                hashtable2.Add(PhotonPlayerProperty.CustomString, parameters[1].returnString(null));
                photonPlayer.SetCustomProperties(hashtable2);
                break;
            }

            case 14:
            {
                Hashtable hashtable = new Hashtable();
                hashtable.Add(PhotonPlayerProperty.RCTeam, parameters[1].returnFloat(null));
                photonPlayer.SetCustomProperties(hashtable);
                break;
            }
            }
            break;
        }

        case 8:
            switch (actionType)
            {
            case 0:
            {
                TITAN    titanObj = parameters[0].returnTitan(null);
                object[] array    = new object[2]
                {
                    parameters[1].returnPlayer(null).Id,
                    parameters[2].ReturnInt(null)
                };
                titanObj.photonView.RPC("titanGetHit", titanObj.photonView.owner, array);
                break;
            }

            case 1:
                FengGameManagerMKII.Instance.SpawnTitanAction(parameters[0].ReturnInt(null), parameters[1].returnFloat(null), parameters[2].ReturnInt(null), parameters[3].ReturnInt(null));
                break;

            case 2:
                FengGameManagerMKII.Instance.SpawnTitanAtAction(parameters[0].ReturnInt(null), parameters[1].returnFloat(null), parameters[2].ReturnInt(null), parameters[3].ReturnInt(null), parameters[4].returnFloat(null), parameters[5].returnFloat(null), parameters[6].returnFloat(null));
                break;

            case 3:
            {
                TITAN titanObj = parameters[0].returnTitan(null);
                int   num      = titanObj.currentHealth = parameters[1].ReturnInt(null);
                if (titanObj.maxHealth == 0)
                {
                    titanObj.maxHealth = titanObj.currentHealth;
                }
                titanObj.photonView.RPC("labelRPC", PhotonTargets.AllBuffered, titanObj.currentHealth, titanObj.maxHealth);
                break;
            }

            case 4:
            {
                TITAN titanObj = parameters[0].returnTitan(null);
                if (titanObj.photonView.isMine)
                {
                    titanObj.MoveTo(parameters[1].returnFloat(null), parameters[2].returnFloat(null), parameters[3].returnFloat(null));
                }
                else
                {
                    titanObj.photonView.RPC("moveToRPC", titanObj.photonView.owner, parameters[1].returnFloat(null), parameters[2].returnFloat(null), parameters[3].returnFloat(null));
                }
                break;
            }
            }
            break;

        case 9:
            switch (actionType)
            {
            case 0:
                FengGameManagerMKII.Instance.photonView.RPC("Chat", PhotonTargets.All, parameters[0].returnString(null), string.Empty);
                break;

            case 2:
                FengGameManagerMKII.Instance.LoseGame();
                if (parameters[0].returnBool(null))
                {
                    FengGameManagerMKII.IntVariables.Clear();
                    FengGameManagerMKII.BoolVariables.Clear();
                    FengGameManagerMKII.StringVariables.Clear();
                    FengGameManagerMKII.FloatVariables.Clear();
                    FengGameManagerMKII.PlayerVariables.Clear();
                    FengGameManagerMKII.TitanVariables.Clear();
                }
                break;

            case 1:
                FengGameManagerMKII.Instance.WinGame();
                if (parameters[0].returnBool(null))
                {
                    FengGameManagerMKII.IntVariables.Clear();
                    FengGameManagerMKII.BoolVariables.Clear();
                    FengGameManagerMKII.StringVariables.Clear();
                    FengGameManagerMKII.FloatVariables.Clear();
                    FengGameManagerMKII.PlayerVariables.Clear();
                    FengGameManagerMKII.TitanVariables.Clear();
                }
                break;

            case 3:
                if (parameters[0].returnBool(null))
                {
                    FengGameManagerMKII.IntVariables.Clear();
                    FengGameManagerMKII.BoolVariables.Clear();
                    FengGameManagerMKII.StringVariables.Clear();
                    FengGameManagerMKII.FloatVariables.Clear();
                    FengGameManagerMKII.PlayerVariables.Clear();
                    FengGameManagerMKII.TitanVariables.Clear();
                }
                FengGameManagerMKII.Instance.RestartGame();
                break;
            }
            break;
        }
    }