Exemplo n.º 1
0
 private void StopAllAction()
 {
     if (stAct_WY != null)
     {
         stAct_WY.Stop();
         stAct_WY = null;
     }
     if (stAct_SJ != null)
     {
         stAct_SJ.Stop();
         stAct_SJ = null;
     }
 }
Exemplo n.º 2
0
        static StackObject *get_IsFinished_1(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            Johny.Action.ActionGeneralParticle instance_of_this_method = (Johny.Action.ActionGeneralParticle) typeof(Johny.Action.ActionGeneralParticle).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.IsFinished;

            __ret->ObjectType = ObjectTypes.Integer;
            __ret->Value      = result_of_this_method ? 1 : 0;
            return(__ret + 1);
        }
Exemplo n.º 3
0
        static StackObject *Ctor_0(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 5);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            UnityEngine.Vector3 @offset = new UnityEngine.Vector3();
            if (ILRuntime.Runtime.Generated.CLRBindings.s_UnityEngine_Vector3_Binding_Binder != null)
            {
                ILRuntime.Runtime.Generated.CLRBindings.s_UnityEngine_Vector3_Binding_Binder.ParseValue(ref @offset, __intp, ptr_of_this_method, __mStack, true);
            }
            else
            {
                @offset = (UnityEngine.Vector3) typeof(UnityEngine.Vector3).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
                __intp.Free(ptr_of_this_method);
            }

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UnityEngine.Vector3 @worldPos = new UnityEngine.Vector3();
            if (ILRuntime.Runtime.Generated.CLRBindings.s_UnityEngine_Vector3_Binding_Binder != null)
            {
                ILRuntime.Runtime.Generated.CLRBindings.s_UnityEngine_Vector3_Binding_Binder.ParseValue(ref @worldPos, __intp, ptr_of_this_method, __mStack, true);
            }
            else
            {
                @worldPos = (UnityEngine.Vector3) typeof(UnityEngine.Vector3).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
                __intp.Free(ptr_of_this_method);
            }

            ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
            System.String @effectName = (System.String) typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 4);
            UnityEngine.GameObject @parent = (UnityEngine.GameObject) typeof(UnityEngine.GameObject).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 5);
            System.Single @delay = *(float *)&ptr_of_this_method->Value;


            var result_of_this_method = new Johny.Action.ActionGeneralParticle(@delay, @parent, @effectName, @worldPos, @offset);

            return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method));
        }
Exemplo n.º 4
0
        static StackObject *SetForceFinishDuring_2(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Single @during = *(float *)&ptr_of_this_method->Value;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            Johny.Action.ActionGeneralParticle instance_of_this_method = (Johny.Action.ActionGeneralParticle) typeof(Johny.Action.ActionGeneralParticle).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.SetForceFinishDuring(@during);

            return(__ret);
        }
Exemplo n.º 5
0
        static StackObject *Stop_0(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            Johny.Action.ActionGeneralParticle.FinishStatus @status = (Johny.Action.ActionGeneralParticle.FinishStatus) typeof(Johny.Action.ActionGeneralParticle.FinishStatus).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            Johny.Action.ActionGeneralParticle instance_of_this_method = (Johny.Action.ActionGeneralParticle) typeof(Johny.Action.ActionGeneralParticle).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.Stop(@status);

            return(__ret);
        }
Exemplo n.º 6
0
        protected override IEnumerator WaitForPlayer()
        {
            LoadingSpinner.Show();
            while (!MapCtrl.IsPlayerReady())
            {
                yield return(null);
            }
            LoadingSpinner.Hide();

            while (LTInstanceMapModel.Instance.EventList.Count > 0)
            {
                LTInstanceEvent evt = LTInstanceMapModel.Instance.EventList.Dequeue();
                EB.Debug.Log("event: type = {0}, x = {1}, y = {2}, param = {3}", evt.Type, evt.x, evt.y, evt.Param);
                //通用
                if (evt.Type == LTInstanceEvent.EVENT_TYPE_OPEN_BOX)//开箱
                {
                    OpenBox(evt.Param, evt.x, evt.y);
                }
                else if (evt.Type == LTInstanceEvent.EVENT_TYPE_HIDDEN)//密道
                {
                    MessageTemplateManager.ShowMessage(eMessageUIType.FloatingText, EB.Localizer.GetString("ID_codefont_in_LTChallengeInstanceHudController_18472"));
                    LTInstanceMapModel.Instance.EventUpdateData();
                }
                else if (evt.Type == LTInstanceEvent.EVENT_TYPE_DOOR_OPEN)//机关打开
                {
                    FusionAudio.PostEvent("UI/New/JiGuan", true);
                    LTInstanceMapModel.Instance.InitOpenDoor(evt.x, evt.y);
                    var nodeObject = MapCtrl.GetNodeObjByPos(evt.x, evt.y);
                    nodeObject?.OpenTheDoor();
                    if (evt.Param != null && evt.Param.Equals("exit"))
                    {
                        MessageTemplateManager.ShowMessage(eMessageUIType.FloatingText, EB.Localizer.GetString("ID_codefont_in_LTChallengeInstanceHudController_17782"));
                    }
                    else
                    {
                        MessageTemplateManager.ShowMessage(eMessageUIType.FloatingText, EB.Localizer.GetString("ID_codefont_in_LTChallengeInstanceHudController_17940"));
                    }
                }
                //挑战
                else if (evt.Type == LTInstanceEvent.EVENT_TYPE_HEAL_TRIGGER)//医疗
                {
                    FusionAudio.PostEvent("UI/New/HuiFu", true);
                    // MapCtrl.ShowHealTrigger();
                    Hotfix_LT.Instance.LTInstanceOptimizeManager.Instance.HoldPlayerEffect("fx_fb_fanzhuan_jiaxue");
                    HpCtrl.UpdateHp(LTChallengeInstanceHpCtrl.HPEventType.ADD, evt.HasHPInfoData, evt.Param);
                }
                else if (evt.Type == LTInstanceEvent.EVENT_TYPE_BOMB)//炸弹
                {
                    FusionAudio.PostEvent("UI/New/explode", true);
                    ShowBombUpdateHpFx(evt.Param, evt.HasHPInfoData, LTChallengeInstanceHpCtrl.HPEventType.BOOM);
                }
                else if (evt.Type == LTInstanceEvent.EVENT_TYPE_TRAP_TRIGGER)//陷阱
                {
                    MapCtrl.ShowTrapTrigger();
                    FusionAudio.PostEvent("UI/New/explode", true);
                    ShowBombUpdateHpFx(evt.Param, evt.HasHPInfoData, LTChallengeInstanceHpCtrl.HPEventType.REMOVE);
                }
                else if (evt.Type == LTInstanceEvent.EVENT_TYPE_MANA_TRAP_TRIGGER)//魔力陷阱
                {
                    FusionAudio.PostEvent("UI/New/explode", true);
                    ShowBombUpdateSpFx(evt);
                }
                else if (evt.Type == LTInstanceEvent.EVENT_TYPE_EXIT_POINT)//副本传送门
                {
                    var nodeData = LTInstanceMapModel.Instance.GetNodeByPos(evt.x, evt.y);
                    GlobalMenuManager.Instance.Open("LTChallengeInstancePortalView", nodeData.RoleData.Param.Count > 0 && nodeData.RoleData.Param[0] == "BOSS");
                }
                else if (evt.Type == LTInstanceEvent.EVENT_TYPE_CHALLENGE_FAIL)//挑战副本失败
                {
                    Hashtable table = Johny.HashtablePool.Claim();
                    table["flag"] = false;
                    System.Action <int> action = OnDefaultViewClose;
                    table["action"]    = action;
                    table["isConfirm"] = false;
                    GlobalMenuManager.Instance.Open("LTChallengeInstanceDefaultView", table);
                }
                else if (evt.Type == LTInstanceEvent.EVENT_TYPE_MANA_REGEN)//魔力药水
                {
                    FusionAudio.PostEvent("UI/New/YaoShui", true);
                    MagicFly(FlyMagicObj, OnMagicFlyEnd);
                }
                else if (evt.Type == LTInstanceEvent.EVENT_TYPE_MANA_REGEN_FACTOR)//魔力袋
                {
                    FusionAudio.PostEvent("UI/New/YaoShui", true);
                    MagicFly(FlyMagicsObj, OnMagicsFlyEnd);
                }
                else if (evt.Type == LTInstanceEvent.EVENT_TYPE_DICE)//色子
                {
                    LoadDice(evt.Param, delegate(int num)
                    {
                        FlyScroll();
                    });
                }
                else if (evt.Type == LTInstanceEvent.EVENT_TYPE_LUCK)//幸运色子
                {
                    LoadDice(evt.Param, delegate(int num)
                    {
                    });
                }
                else if (evt.Type == LTInstanceEvent.EVENT_TYPE_SHOP)//商店
                {
                    if (!MapCtrl.HasNext())
                    {
                        FusionAudio.PostEvent("UI/New/Mai", true);
                        GlobalMenuManager.Instance.Open("LTChallengeInstanceShopView", evt);
                    }
                }
                else if (evt.Type == LTInstanceEvent.EVENT_TYPE_SHOPREFRESH)//商店刷新
                {
                    MessageTemplateManager.ShowMessage(eMessageUIType.FloatingText, EB.Localizer.GetString("ID_codefont_in_LTChallengeInstanceShopCtrl_4116"));
                    Hotfix_LT.Messenger.Raise(EventName.ChallengeInstanceBuySucc, evt.Param);
                }
                else if (evt.Type == LTInstanceEvent.EVENT_TYPE_GETSCROLL)//技能卷轴
                {
                    FusionAudio.PostEvent("UI/New/Zhi", true);
                    FlyScroll();
                }
                else if (evt.Type == LTInstanceEvent.EVENT_TYPE_HUNTERMARK)//猎人印记
                {
                    FusionAudio.PostEvent("UI/New/SuoDing", true);
                    PLayMagnifyingGlassAni();
                }
                else if (evt.Type == LTInstanceEvent.EVENT_TYPE_EXITLOCKED)//被封印传送门
                {
                    MessageTemplateManager.ShowMessage(eMessageUIType.FloatingText, EB.Localizer.GetString("ID_codefont_in_LTChallengeInstanceHudController_18812"));
                }
                else if (evt.Type == LTInstanceEvent.EVENT_TYPE_EXITLOCKED2)//钥匙传送门
                {
                    MessageTemplateManager.ShowMessage(eMessageUIType.FloatingText, EB.Localizer.GetString("ID_CHALLENGE_INSTANCE_NEED_KEY"));
                }
                else if (evt.Type == LTInstanceEvent.EVENT_TYPE_GUIDE)//新元素
                {
                    OnGuide(evt);
                }
                else if (evt.Type == LTInstanceEvent.EVENT_TYPE_WHEEL)//幸运转盘
                {
                    Hashtable data = Johny.HashtablePool.Claim();
                    data.Add("type", LTInstanceConfig.InChallengeState);
                    data.Add("x", evt.x);
                    data.Add("y", evt.y);
                    data.Add("callback", new System.Action(delegate { LTInstanceMapModel.Instance.RequestGetChapterState(); }));
                    GlobalMenuManager.Instance.Open("LTChallengeInstanceTurntableView", data);
                }
                else if (evt.Type == LTInstanceEvent.EVENT_TYPE_DAMAGE)//瘟疫
                {
                    if (stAct_WY == null || stAct_WY.IsFinished)
                    {
                        stAct_WY = Hotfix_LT.Instance.LTInstanceOptimizeManager.Instance.HoldPlayerEffect("fx_fb_fanzhuan_wenyi");
                    }
                    MapCtrl.ShowTrapTrigger();
                    HpCtrl.UpdateHp(LTChallengeInstanceHpCtrl.HPEventType.WENYI, evt.HasHPInfoData, evt.Param);
                }
                else if (evt.Type == LTInstanceEvent.EVENT_TYPE_HEAL)//生机
                {
                    if (stAct_SJ == null || stAct_SJ.IsFinished)
                    {
                        stAct_SJ = Hotfix_LT.Instance.LTInstanceOptimizeManager.Instance.HoldPlayerEffect("fx_fb_fanzhuan_jiaxue");
                    }
                    HpCtrl.UpdateHp(LTChallengeInstanceHpCtrl.HPEventType.SHENGJI, evt.HasHPInfoData, evt.Param);
                }
            }
        }