Exemple #1
0
 static int set_Yes(IntPtr L)
 {
     try
     {
         Nova.UseRelativeValue arg0 = (Nova.UseRelativeValue)ToLua.CheckObject <Nova.UseRelativeValue>(L, 2);
         Nova.UseRelativeValue.Yes = arg0;
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Exemple #2
0
    static int _CreateNova_MaterialFloatAnimationProperty(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 3)
            {
                UnityEngine.Material arg0 = (UnityEngine.Material)ToLua.CheckObject <UnityEngine.Material>(L, 1);
                string arg1 = ToLua.CheckString(L, 2);
                float  arg2 = (float)LuaDLL.luaL_checknumber(L, 3);
                Nova.MaterialFloatAnimationProperty obj = new Nova.MaterialFloatAnimationProperty(arg0, arg1, arg2);
                ToLua.PushObject(L, obj);
                return(1);
            }
            else if (count == 4 && TypeChecker.CheckTypes <Nova.UseRelativeValue>(L, 4))
            {
                UnityEngine.Material arg0 = (UnityEngine.Material)ToLua.CheckObject <UnityEngine.Material>(L, 1);
                string arg1 = ToLua.CheckString(L, 2);
                float  arg2 = (float)LuaDLL.luaL_checknumber(L, 3);
                Nova.UseRelativeValue arg3 = (Nova.UseRelativeValue)ToLua.ToObject(L, 4);
                Nova.MaterialFloatAnimationProperty obj = new Nova.MaterialFloatAnimationProperty(arg0, arg1, arg2, arg3);
                ToLua.PushObject(L, obj);
                return(1);
            }
            else if (count == 4 && TypeChecker.CheckTypes <float>(L, 4))
            {
                UnityEngine.Material arg0 = (UnityEngine.Material)ToLua.CheckObject <UnityEngine.Material>(L, 1);
                string arg1 = ToLua.CheckString(L, 2);
                float  arg2 = (float)LuaDLL.luaL_checknumber(L, 3);
                float  arg3 = (float)LuaDLL.lua_tonumber(L, 4);
                Nova.MaterialFloatAnimationProperty obj = new Nova.MaterialFloatAnimationProperty(arg0, arg1, arg2, arg3);
                ToLua.PushObject(L, obj);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: Nova.MaterialFloatAnimationProperty.New"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
    static int _CreateNova_ScaleAnimationProperty(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 2)
            {
                UnityEngine.Transform       arg0 = (UnityEngine.Transform)ToLua.CheckObject <UnityEngine.Transform>(L, 1);
                UnityEngine.Vector3         arg1 = ToLua.ToVector3(L, 2);
                Nova.ScaleAnimationProperty obj  = new Nova.ScaleAnimationProperty(arg0, arg1);
                ToLua.PushObject(L, obj);
                return(1);
            }
            else if (count == 3 && TypeChecker.CheckTypes <Nova.UseRelativeValue>(L, 3))
            {
                UnityEngine.Transform       arg0 = (UnityEngine.Transform)ToLua.CheckObject <UnityEngine.Transform>(L, 1);
                UnityEngine.Vector3         arg1 = ToLua.ToVector3(L, 2);
                Nova.UseRelativeValue       arg2 = (Nova.UseRelativeValue)ToLua.ToObject(L, 3);
                Nova.ScaleAnimationProperty obj  = new Nova.ScaleAnimationProperty(arg0, arg1, arg2);
                ToLua.PushObject(L, obj);
                return(1);
            }
            else if (count == 3 && TypeChecker.CheckTypes <UnityEngine.Vector3>(L, 3))
            {
                UnityEngine.Transform       arg0 = (UnityEngine.Transform)ToLua.CheckObject <UnityEngine.Transform>(L, 1);
                UnityEngine.Vector3         arg1 = ToLua.ToVector3(L, 2);
                UnityEngine.Vector3         arg2 = ToLua.ToVector3(L, 3);
                Nova.ScaleAnimationProperty obj  = new Nova.ScaleAnimationProperty(arg0, arg1, arg2);
                ToLua.PushObject(L, obj);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: Nova.ScaleAnimationProperty.New"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
Exemple #4
0
    static int _CreateNova_TimeAnimationProperty(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 2)
            {
                Nova.TimelineController arg0 = (Nova.TimelineController)ToLua.CheckObject <Nova.TimelineController>(L, 1);
                float arg1 = (float)LuaDLL.luaL_checknumber(L, 2);
                Nova.TimeAnimationProperty obj = new Nova.TimeAnimationProperty(arg0, arg1);
                ToLua.PushObject(L, obj);
                return(1);
            }
            else if (count == 3 && TypeChecker.CheckTypes <Nova.UseRelativeValue>(L, 3))
            {
                Nova.TimelineController arg0 = (Nova.TimelineController)ToLua.CheckObject <Nova.TimelineController>(L, 1);
                float arg1 = (float)LuaDLL.luaL_checknumber(L, 2);
                Nova.UseRelativeValue      arg2 = (Nova.UseRelativeValue)ToLua.ToObject(L, 3);
                Nova.TimeAnimationProperty obj  = new Nova.TimeAnimationProperty(arg0, arg1, arg2);
                ToLua.PushObject(L, obj);
                return(1);
            }
            else if (count == 3 && TypeChecker.CheckTypes <float>(L, 3))
            {
                Nova.TimelineController arg0 = (Nova.TimelineController)ToLua.CheckObject <Nova.TimelineController>(L, 1);
                float arg1 = (float)LuaDLL.luaL_checknumber(L, 2);
                float arg2 = (float)LuaDLL.lua_tonumber(L, 3);
                Nova.TimeAnimationProperty obj = new Nova.TimeAnimationProperty(arg0, arg1, arg2);
                ToLua.PushObject(L, obj);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: Nova.TimeAnimationProperty.New"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
 protected FloatBaseAnimationProperty(float deltaValue, UseRelativeValue useRelativeValue) : base(deltaValue,
                                                                                                  useRelativeValue)
 {
 }
 public MaterialFloatAnimationProperty(Material material, string propertyName, float deltaValue,
                                       UseRelativeValue useRelativeValue) : base(deltaValue, useRelativeValue)
 {
     this.material = material;
     propertyID    = Shader.PropertyToID(propertyName);
 }
Exemple #7
0
 public ScaleAnimationProperty(Transform transform, Vector3 deltaValue, UseRelativeValue useRelativeValue) :
     base(deltaValue, useRelativeValue)
 {
     this.transform = transform;
 }
Exemple #8
0
 public AnchorAnimationProperty(RectTransform rect, Vector4 deltaValue, UseRelativeValue useRelativeValue) :
     base(deltaValue, useRelativeValue)
 {
     this.rect = rect;
 }
 public VolumeAnimationProperty(AudioController audioController, float deltaValue,
                                UseRelativeValue useRelativeValue) : base(deltaValue, useRelativeValue)
 {
     this.audioController = audioController;
 }
 public VolumeAnimationProperty(UnifiedAudioSource audioSource, float deltaValue,
                                UseRelativeValue useRelativeValue) : base(deltaValue, useRelativeValue)
 {
     this.audioSource = audioSource;
 }
Exemple #11
0
 public RotationAnimationProperty(Transform transform, Vector3 deltaEuler, UseRelativeValue useRelativeValue) :
     base(Quaternion.Euler(deltaEuler), useRelativeValue)
 {
     this.transform = transform;
 }
Exemple #12
0
 public TimeAnimationProperty(TimelineController timeline, float deltaValue, UseRelativeValue useRelativeValue) :
     base(deltaValue, useRelativeValue)
 {
     this.timeline = timeline;
 }