static int Clear(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); FightManager obj = (FightManager)ToLua.CheckObject(L, 1, typeof(FightManager)); obj.Clear(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }