示例#1
0
    public void ReplaceMobData(DG.Tweening.Tween newFlashTween)
    {
        var index     = GameComponentsLookup.MobData;
        var component = (STGU3D.MobDataComponent)CreateComponent(index, typeof(STGU3D.MobDataComponent));

        component.flashTween = newFlashTween;
        ReplaceComponent(index, component);
    }
示例#2
0
    public void ReplaceTween(DG.Tweening.Tween newValue)
    {
        var index     = GameComponentsLookup.Tween;
        var component = (Tween)CreateComponent(index, typeof(Tween));

        component.value = newValue;
        ReplaceComponent(index, component);
    }
示例#3
0
    public void ReplaceBossData(STGU3D.EBossType newBossType, DG.Tweening.Tween newFlashTween)
    {
        var index     = GameComponentsLookup.BossData;
        var component = (STGU3D.BossDataComponent)CreateComponent(index, typeof(STGU3D.BossDataComponent));

        component.bossType   = newBossType;
        component.flashTween = newFlashTween;
        ReplaceComponent(index, component);
    }
示例#4
0
        static StackObject *SetRelative_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, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            DG.Tweening.Tween @t = (DG.Tweening.Tween) typeof(DG.Tweening.Tween).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);


            var result_of_this_method = DG.Tweening.TweenSettingsExtensions.SetRelative <DG.Tweening.Tween>(@t);

            return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method));
        }
示例#5
0
        static StackObject *PlayForward_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, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            DG.Tweening.Tween @t = (DG.Tweening.Tween) typeof(DG.Tweening.Tween).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);


            DG.Tweening.TweenExtensions.PlayForward(@t);

            return(__ret);
        }
示例#6
0
        static StackObject *IsPlaying_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);
            DG.Tweening.Tween @t = (DG.Tweening.Tween) typeof(DG.Tweening.Tween).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags) 0);
            __intp.Free(ptr_of_this_method);


            var result_of_this_method = DG.Tweening.TweenExtensions.IsPlaying(@t);

            __ret->ObjectType = ObjectTypes.Integer;
            __ret->Value      = result_of_this_method ? 1 : 0;
            return(__ret + 1);
        }
示例#7
0
        static StackObject *Kill_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);
            System.Boolean @complete = ptr_of_this_method->Value == 1;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            DG.Tweening.Tween @t = (DG.Tweening.Tween) typeof(DG.Tweening.Tween).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);


            DG.Tweening.TweenExtensions.Kill(@t, @complete);

            return(__ret);
        }
        static StackObject *OnComplete_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, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            DG.Tweening.TweenCallback @action = (DG.Tweening.TweenCallback) typeof(DG.Tweening.TweenCallback).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags) 8);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            DG.Tweening.Tween @t = (DG.Tweening.Tween) typeof(DG.Tweening.Tween).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags) 0);
            __intp.Free(ptr_of_this_method);


            var result_of_this_method = DG.Tweening.TweenSettingsExtensions.OnComplete <DG.Tweening.Tween>(@t, @action);

            return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method));
        }
示例#9
0
        static StackObject *Restart_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, 3);

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

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            System.Boolean @includeDelay = ptr_of_this_method->Value == 1;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
            DG.Tweening.Tween @t = (DG.Tweening.Tween) typeof(DG.Tweening.Tween).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);


            DG.Tweening.TweenExtensions.Restart(@t, @includeDelay, @changeDelayTo);

            return(__ret);
        }
示例#10
0
        static int _m_DelayedCall_xlua_st_(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);



                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) && translator.Assignable <DG.Tweening.TweenCallback>(L, 2) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3))
                {
                    float _delay = (float)LuaAPI.lua_tonumber(L, 1);
                    DG.Tweening.TweenCallback _callback = translator.GetDelegate <DG.Tweening.TweenCallback>(L, 2);
                    bool _ignoreTimeScale = LuaAPI.lua_toboolean(L, 3);

                    DG.Tweening.Tween gen_ret = DG.Tweening.DOVirtual.DelayedCall(_delay, _callback, _ignoreTimeScale);
                    translator.Push(L, gen_ret);



                    return(1);
                }
                if (gen_param_count == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) && translator.Assignable <DG.Tweening.TweenCallback>(L, 2))
                {
                    float _delay = (float)LuaAPI.lua_tonumber(L, 1);
                    DG.Tweening.TweenCallback _callback = translator.GetDelegate <DG.Tweening.TweenCallback>(L, 2);

                    DG.Tweening.Tween gen_ret = DG.Tweening.DOVirtual.DelayedCall(_delay, _callback);
                    translator.Push(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }

            return(LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.DOVirtual.DelayedCall!"));
        }
示例#11
0
        static StackObject *ToAwaiter_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, 3);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            global::TweenCancelBehaviour @behaviour = (global::TweenCancelBehaviour)typeof(global::TweenCancelBehaviour).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));

            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            System.Threading.CancellationToken @cancellationToken = (System.Threading.CancellationToken) typeof(System.Threading.CancellationToken).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
            DG.Tweening.Tween @tween = (DG.Tweening.Tween) typeof(DG.Tweening.Tween).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);


            var result_of_this_method = global::DotweenExtention.ToAwaiter(@tween, @cancellationToken, @behaviour);

            return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method));
        }
示例#12
0
    public void ReplacePlayerData(STGU3D.EPlayerType newPlayerType, STGU3D.EHeroType newHeroType, GameEntity[] newWingmans, float newMoveSpeed, DG.Tweening.Tween newFlashTween)
    {
        var index     = GameComponentsLookup.PlayerData;
        var component = (STGU3D.PlayerDataComponent)CreateComponent(index, typeof(STGU3D.PlayerDataComponent));

        component.playerType = newPlayerType;
        component.heroType   = newHeroType;
        component.wingmans   = newWingmans;
        component.moveSpeed  = newMoveSpeed;
        component.flashTween = newFlashTween;
        ReplaceComponent(index, component);
    }
示例#13
0
 public static TweenAwaiter GetAwaiter(this DG.Tweening.Tween self)
 {
     return(new TweenAwaiter(self));
 }
示例#14
0
 public static TweenAwaiter GetCancellableAwaiter(this DG.Tweening.Tween self,
                                                  System.Threading.CancellationToken cancellationToken = default)
 {
     return(new TweenAwaiter(self, cancellationToken));
 }