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

        MyFrameWork.E_UIStyle o = (MyFrameWork.E_UIStyle)arg0;
        ToLua.Push(L, o);
        return(1);
    }
Esempio n. 2
0
    static int set_mUIStyle(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            MyFrameWork.BaseUI    obj  = (MyFrameWork.BaseUI)o;
            MyFrameWork.E_UIStyle arg0 = (MyFrameWork.E_UIStyle)ToLua.CheckObject(L, 2, typeof(MyFrameWork.E_UIStyle));
            obj.mUIStyle = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index mUIStyle on a nil value" : e.Message));
        }
    }
Esempio n. 3
0
    static int get_mUIStyle(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            MyFrameWork.BaseUI    obj = (MyFrameWork.BaseUI)o;
            MyFrameWork.E_UIStyle ret = obj.mUIStyle;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index mUIStyle on a nil value" : e.Message));
        }
    }