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

        MyFrameWork.E_LayerType o = (MyFrameWork.E_LayerType)arg0;
        ToLua.Push(L, o);
        return(1);
    }
Exemple #2
0
    static int set_mUILayertype(IntPtr L)
    {
        object o = null;

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

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