コード例 #1
0
 static int GetPlayID(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         PlayBase obj = (PlayBase)ToLua.CheckObject <PlayBase>(L, 1);
         int      o   = obj.GetPlayID();
         LuaDLL.lua_pushinteger(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }