Пример #1
0
    private static int SetRoleIdle(IntPtr L)
    {
        int result;

        try
        {
            ToLua.CheckArgsCount(L, 1);
            RoleAction roleAction = (RoleAction)ToLua.CheckObject(L, 1, typeof(RoleAction));
            roleAction.SetRoleIdle();
            result = 0;
        }
        catch (Exception e)
        {
            result = LuaDLL.toluaL_exception(L, e, null);
        }
        return(result);
    }