static int IntToEnum(IntPtr L)
    {
        int arg0 = (int)LuaDLL.lua_tonumber(L, 1);

        DebugSystem.DebugGameObjectComponent.IconLayout o = (DebugSystem.DebugGameObjectComponent.IconLayout)arg0;
        ToLua.Push(L, o);
        return(1);
    }
Exemple #2
0
    static int get_iconLayout(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            DebugSystem.DebugGameObjectComponent            obj = (DebugSystem.DebugGameObjectComponent)o;
            DebugSystem.DebugGameObjectComponent.IconLayout ret = obj.iconLayout;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index iconLayout on a nil value"));
        }
    }
Exemple #3
0
    static int set_iconLayout(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            DebugSystem.DebugGameObjectComponent            obj  = (DebugSystem.DebugGameObjectComponent)o;
            DebugSystem.DebugGameObjectComponent.IconLayout arg0 = (DebugSystem.DebugGameObjectComponent.IconLayout)ToLua.CheckObject(L, 2, typeof(DebugSystem.DebugGameObjectComponent.IconLayout));
            obj.iconLayout = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index iconLayout on a nil value"));
        }
    }
 static void Push(IntPtr L, DebugSystem.DebugGameObjectComponent.IconLayout arg)
 {
     ToLua.Push(L, arg);
 }