Esempio n. 1
0
        public override void Do()
        {
            base.Do();
            int num = 0;

            string[]  args      = this.args;
            int       index     = num;
            int       cnt       = index + 1;
            Transform transform = this.scenario.commandController.GetChara(int.Parse(args[index])).transform;
            Vector3   pos1;

            if (!this.scenario.commandController.GetV3Dic(this.args.SafeGet <string>(cnt), out pos1))
            {
                pos1 = transform.get_localPosition();
                CommandBase.CountAddV3(this.args, ref cnt, ref pos1);
            }
            else
            {
                CommandBase.CountAddV3(ref cnt);
            }
            transform.set_localPosition(pos1);
            Vector3 pos2;

            if (!this.scenario.commandController.GetV3Dic(this.args.SafeGet <string>(cnt), out pos2))
            {
                pos2 = transform.get_localEulerAngles();
                CommandBase.CountAddV3(this.args, ref cnt, ref pos2);
            }
            else
            {
                CommandBase.CountAddV3(ref cnt);
            }
            transform.set_localEulerAngles(pos2);
        }
Esempio n. 2
0
        public override void Do()
        {
            base.Do();
            int num1 = 0;

            string[] args1  = this.args;
            int      index1 = num1;
            int      num2   = index1 + 1;
            string   index2 = args1[index1];

            string[] args2  = this.args;
            int      index3 = num2;
            int      cnt    = index3 + 1;
            int      num3   = args2[index3].Check(true, Enum.GetNames(typeof(Position.Type)));
            Vector3  zero   = Vector3.get_zero();

            CommandBase.CountAddV3(this.args, ref cnt, ref zero);
            switch ((Position.Type)num3)
            {
            case Position.Type.Add:
                Transform transform = this.scenario.commandController.Objects[index2].get_transform();
                transform.set_position(Vector3.op_Addition(transform.get_position(), zero));
                break;

            case Position.Type.Set:
                this.scenario.commandController.Objects[index2].get_transform().set_position(zero);
                break;
            }
        }
Esempio n. 3
0
        public override void Do()
        {
            base.Do();
            int     cnt = 0;
            Vector3 pos;

            if (!this.scenario.commandController.GetV3Dic(this.args[cnt], out pos))
            {
                CommandBase.CountAddV3(this.args, ref cnt, ref pos);
            }
            ((Component)this.scenario.AdvCamera).get_transform().LookAt(pos);
        }
Esempio n. 4
0
        public override void Do()
        {
            base.Do();
            int num1 = 0;

            string[] args  = this.args;
            int      index = num1;
            int      num2  = index + 1;
            int      num3  = int.Parse(args[index]);
            int      cnt1  = 0;
            Vector3  zero1 = Vector3.get_zero();
            int      cnt2  = num2;
            int      num4  = cnt2 + 1;

            CommandBase.CountAddV3(this.GetArgToSplit(cnt2), ref cnt1, ref zero1);
            Vector3 zero2 = Vector3.get_zero();
            int     cnt3  = 0;
            int     cnt4  = num4;
            int     num5  = cnt4 + 1;

            CommandBase.CountAddV3(this.GetArgToSplit(cnt4), ref cnt3, ref zero2);
            if (num3 != 0)
            {
                if (num3 == 1)
                {
                    this.scenario.commandController.CharaRoot.SetPositionAndRotation(zero1, Quaternion.Euler(zero2));
                }
                else
                {
                    Debug.LogError((object)("Reset Type : " + (object)num3));
                }
            }
            else
            {
                this.scenario.commandController.BaseRoot.SetPositionAndRotation(zero1, Quaternion.Euler(zero2));
            }
        }
Esempio n. 5
0
        public override void Do()
        {
            base.Do();
            int num1 = 0;

            string[] args1  = this.args;
            int      index1 = num1;
            int      num2   = index1 + 1;
            int      no     = int.Parse(args1[index1]);

            string[] args2  = this.args;
            int      index2 = num2;
            int      num3   = index2 + 1;
            int      key    = int.Parse(args2[index2]);

            string[] args3  = this.args;
            int      index3 = num3;
            int      num4   = index3 + 1;
            string   bundle = args3[index3];

            string[] args4  = this.args;
            int      index4 = num4;
            int      num5   = index4 + 1;
            string   asset  = args4[index4];

            string[] args5  = this.args;
            int      index5 = num5;
            int      num6   = index5 + 1;
            string   root   = args5[index5];

            string[] args6              = this.args;
            int      index6             = num6;
            int      num7               = index6 + 1;
            bool     worldPositionStays = bool.Parse(args6[index6]);

            string[] args7    = this.args;
            int      index7   = num7;
            int      num8     = index7 + 1;
            string   manifest = args7.SafeGet <string>(index7);

            string[] args8  = this.args;
            int      index8 = num8;
            int      num9   = index8 + 1;
            string   str1   = args8.SafeGet <string>(index8);

            string[]  args9  = this.args;
            int       index9 = num9;
            int       num10  = index9 + 1;
            string    str2   = args9.SafeGet <string>(index9);
            CharaData chara  = this.scenario.commandController.GetChara(no);
            Transform root1  = (Transform)null;

            if (!root.IsNullOrEmpty() && Object.op_Inequality((Object)chara.chaCtrl, (Object)null))
            {
                root1 = ((IEnumerable <Transform>)((Component)((Component)chara.chaCtrl).get_transform()).GetComponentsInChildren <Transform>(true)).FirstOrDefault <Transform>((Func <Transform, bool>)(p => ((Object)p).get_name() == root));
            }
            if (Object.op_Equality((Object)root1, (Object)null))
            {
                root1 = ((Component)this.scenario.advScene).get_transform();
            }
            CharaData.CharaItem charaItem;
            if (chara.itemDic.TryGetValue(key, out charaItem))
            {
                charaItem.Delete();
            }
            charaItem = new CharaData.CharaItem();
            charaItem.LoadObject(bundle, asset, root1, worldPositionStays, manifest);
            Vector3 pos;

            if (!this.scenario.commandController.GetV3Dic(str1, out pos))
            {
                int cnt = 0;
                CommandBase.CountAddV3(str1.Split(','), ref cnt, ref pos);
            }
            Transform transform1 = charaItem.item.get_transform();

            transform1.set_localPosition(Vector3.op_Addition(transform1.get_localPosition(), pos));
            if (!this.scenario.commandController.GetV3Dic(str2, out pos))
            {
                int cnt = 0;
                CommandBase.CountAddV3(str2.Split(','), ref cnt, ref pos);
            }
            Transform transform2 = charaItem.item.get_transform();

            transform2.set_localEulerAngles(Vector3.op_Addition(transform2.get_localEulerAngles(), pos));
            chara.itemDic[key] = charaItem;
        }
Esempio n. 6
0
        public override void Do()
        {
            base.Do();
            Illusion.Game.Utils.Sound.Setting s1 = new Illusion.Game.Utils.Sound.Setting(this.type);
            int num1 = 0;

            Illusion.Game.Utils.Sound.Setting setting1 = s1;
            string[] args1  = this.args;
            int      index1 = num1;
            int      num2   = index1 + 1;
            string   str1   = args1[index1];

            setting1.assetBundleName = str1;
            Illusion.Game.Utils.Sound.Setting setting2 = s1;
            string[] args2  = this.args;
            int      index2 = num2;
            int      num3   = index2 + 1;
            string   str2   = args2[index2];

            setting2.assetName = str2;
            Illusion.Game.Utils.Sound.Setting setting3 = s1;
            string[] args3  = this.args;
            int      index3 = num3;
            int      num4   = index3 + 1;
            double   num5;
            float    num6 = (float)(num5 = (double)float.Parse(args3[index3]));

            setting3.delayTime = (float)num5;
            this.delayTime     = num6;
            Illusion.Game.Utils.Sound.Setting setting4 = s1;
            string[] args4  = this.args;
            int      index4 = num4;
            int      num7   = index4 + 1;
            double   num8   = (double)float.Parse(args4[index4]);

            setting4.fadeTime = (float)num8;
            Illusion.Game.Utils.Sound.Setting setting5 = s1;
            string[] args5  = this.args;
            int      index5 = num7;
            int      num9   = index5 + 1;
            int      num10  = bool.Parse(args5[index5]) ? 1 : 0;

            setting5.isAssetEqualPlay = num10 != 0;
            Illusion.Game.Utils.Sound.Setting setting6 = s1;
            string[] args6  = this.args;
            int      index6 = num9;
            int      num11  = index6 + 1;
            int      num12  = bool.Parse(args6[index6]) ? 1 : 0;

            setting6.isAsync = num12 != 0;
            Illusion.Game.Utils.Sound.Setting setting7 = s1;
            string[] args7  = this.args;
            int      index7 = num11;
            int      num13  = index7 + 1;
            int      num14  = int.Parse(args7[index7]);

            setting7.settingNo = num14;
            string[] args8  = this.args;
            int      index8 = num13;
            int      num15  = index8 + 1;

            this.isWait = bool.Parse(args8[index8]);
            string[] args9  = this.args;
            int      index9 = num15;
            int      num16  = index9 + 1;

            this.isStop    = bool.Parse(args9[index9]);
            this.transform = Illusion.Game.Utils.Sound.Play(s1);
            AudioSource audioSource = (AudioSource)((Component)this.transform).GetComponent <AudioSource>();

            string[]        args10  = this.args;
            int             index10 = num16;
            int             num17   = index10 + 1;
            Action <string> act1    = (Action <string>)(s => audioSource.set_loop(bool.Parse(s)));

            args10.SafeProc(index10, act1);
            string[]        args11  = this.args;
            int             index11 = num17;
            int             num18   = index11 + 1;
            Action <string> act2    = (Action <string>)(s => audioSource.set_pitch(float.Parse(s)));

            args11.SafeProc(index11, act2);
            string[]        args12  = this.args;
            int             index12 = num18;
            int             num19   = index12 + 1;
            Action <string> act3    = (Action <string>)(s => audioSource.set_panStereo(float.Parse(s)));

            args12.SafeProc(index12, act3);
            string[]        args13  = this.args;
            int             index13 = num19;
            int             num20   = index13 + 1;
            Action <string> act4    = (Action <string>)(s => audioSource.set_spatialBlend(float.Parse(s)));

            args13.SafeProc(index13, act4);
            string[]        args14  = this.args;
            int             index14 = num20;
            int             num21   = index14 + 1;
            Action <string> act5    = (Action <string>)(s => audioSource.set_time(float.Parse(s)));

            args14.SafeProc(index14, act5);
            string[]        args15  = this.args;
            int             index15 = num21;
            int             num22   = index15 + 1;
            Action <string> act6    = (Action <string>)(s => audioSource.set_volume(float.Parse(s)));

            args15.SafeProc(index15, act6);
            string[]        args16  = this.args;
            int             index16 = num22;
            int             num23   = index16 + 1;
            Action <string> act7    = (Action <string>)(s =>
            {
                Vector3 v;
                if (!this.scenario.commandController.V3Dic.TryGetValue(s, out v))
                {
                    int cnt = 0;
                    CommandBase.CountAddV3(s.Split(','), ref cnt, ref v);
                }
                this.transform.set_position(v);
            });

            args16.SafeProc(index16, act7);
            string[]        args17  = this.args;
            int             index17 = num23;
            int             num24   = index17 + 1;
            Action <string> act8    = (Action <string>)(s =>
            {
                Vector3 v;
                if (!this.scenario.commandController.V3Dic.TryGetValue(s, out v))
                {
                    int cnt = 0;
                    CommandBase.CountAddV3(s.Split(','), ref cnt, ref v);
                }
                this.move = new Vector3?(v);
            });

            args17.SafeProc(index17, act8);
            string[]        args18  = this.args;
            int             index18 = num24;
            int             num25   = index18 + 1;
            Action <string> act9    = (Action <string>)(s => this.stopTime = new float?(float.Parse(s)));

            args18.SafeProc(index18, act9);
        }