コード例 #1
0
    static int get_PickAction(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            MyLib.CGPlayerCmd    obj = (MyLib.CGPlayerCmd)o;
            MyLib.PickItemAction ret = obj.PickAction;
            ToLua.PushSealed(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index PickAction on a nil value"));
        }
    }
コード例 #2
0
    static int set_PickAction(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            MyLib.CGPlayerCmd    obj  = (MyLib.CGPlayerCmd)o;
            MyLib.PickItemAction arg0 = (MyLib.PickItemAction)ToLua.CheckObject(L, 2, typeof(MyLib.PickItemAction));
            obj.PickAction = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index PickAction on a nil value"));
        }
    }