Esempio n. 1
0
 static int PreExchangeWeather(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         SceneRelation obj = (SceneRelation)ToLua.CheckObject(L, 1, typeof(SceneRelation));
         obj.PreExchangeWeather();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Esempio n. 2
0
 static int StartLoadResource(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         SceneRelation    obj  = (SceneRelation)ToLua.CheckObject(L, 1, typeof(SceneRelation));
         string           arg0 = ToLua.CheckString(L, 2);
         float            arg1 = (float)LuaDLL.luaL_checknumber(L, 3);
         ParticleExchange o    = obj.StartLoadResource(arg0, arg1);
         ToLua.Push(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Esempio n. 3
0
    static int set_colorExchanges(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            SceneRelation obj = (SceneRelation)o;
            System.Collections.Generic.List <ColorArgsExchange> arg0 = (System.Collections.Generic.List <ColorArgsExchange>)ToLua.CheckObject(L, 2, typeof(System.Collections.Generic.List <ColorArgsExchange>));
            obj.colorExchanges = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index colorExchanges on a nil value" : e.Message));
        }
    }
Esempio n. 4
0
    static int set_defences_pos(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            SceneRelation           obj  = (SceneRelation)o;
            UnityEngine.Transform[] arg0 = ToLua.CheckObjectArray <UnityEngine.Transform>(L, 2);
            obj.defences_pos = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index defences_pos on a nil value" : e.Message));
        }
    }
Esempio n. 5
0
    static int set_bg(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            SceneRelation          obj  = (SceneRelation)o;
            UnityEngine.GameObject arg0 = (UnityEngine.GameObject)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.GameObject));
            obj.bg = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index bg on a nil value" : e.Message));
        }
    }
Esempio n. 6
0
    static int set_weatherTransform(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            SceneRelation         obj  = (SceneRelation)o;
            UnityEngine.Transform arg0 = (UnityEngine.Transform)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.Transform));
            obj.weatherTransform = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index weatherTransform on a nil value" : e.Message));
        }
    }
Esempio n. 7
0
    static int get_colorExchanges(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            SceneRelation obj = (SceneRelation)o;
            System.Collections.Generic.List <ColorArgsExchange> ret = obj.colorExchanges;
            ToLua.PushObject(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index colorExchanges on a nil value" : e.Message));
        }
    }
Esempio n. 8
0
    static int get_defences_pos(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            SceneRelation           obj = (SceneRelation)o;
            UnityEngine.Transform[] ret = obj.defences_pos;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index defences_pos on a nil value" : e.Message));
        }
    }
Esempio n. 9
0
    static int get_bg(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            SceneRelation          obj = (SceneRelation)o;
            UnityEngine.GameObject ret = obj.bg;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index bg on a nil value" : e.Message));
        }
    }
Esempio n. 10
0
 static int StartExchangeColor(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 5);
         SceneRelation     obj  = (SceneRelation)ToLua.CheckObject(L, 1, typeof(SceneRelation));
         string            arg0 = ToLua.CheckString(L, 2);
         UnityEngine.Color arg1 = ToLua.ToColor(L, 3);
         float             arg2 = (float)LuaDLL.luaL_checknumber(L, 4);
         float             arg3 = (float)LuaDLL.luaL_checknumber(L, 5);
         obj.StartExchangeColor(arg0, arg1, arg2, arg3);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }