コード例 #1
0
 static int Set(IntPtr L)
 {
     try
     {
         LuaInterface.LuaField obj = (LuaInterface.LuaField)ToLua.CheckObject(L, 1, typeof(LuaInterface.LuaField));
         return(obj.Set(L));
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
コード例 #2
0
 static void PushLuaField(IntPtr L, FieldInfo f, Type t)
 {
     if (f != null)
     {
         LuaField lp = new LuaField(f, t);
         ToLua.PushObject(L, lp);
     }
     else
     {
         LuaDLL.lua_pushnil(L);
     }
 }