Example #1
0
 static int Get(IntPtr L)
 {
     try
     {
         LuaProperty obj = (LuaProperty)ToLua.CheckObject <LuaProperty>(L, 1);
         return(obj.Get(L));
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Example #2
0
 static int Set(IntPtr L)
 {
     try
     {
         LuaProperty obj = (LuaProperty)ToLua.CheckObject(L, 1, typeof(LuaProperty));
         return(obj.Set(L));
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Example #3
0
    private static int Set(IntPtr L)
    {
        int result;

        try
        {
            LuaProperty luaProperty = (LuaProperty)ToLua.CheckObject(L, 1, typeof(LuaProperty));
            result = luaProperty.Set(L);
        }
        catch (Exception e)
        {
            result = LuaDLL.toluaL_exception(L, e, null);
        }
        return(result);
    }