slot0 = class("EventGiveUpCommand", pm.SimpleCommand) function slot0.execute(slot0, slot1) pg.ConnectionMgr.GetInstance():Send(13007, { id = slot1:getBody().id }, 13008, function (slot0) if slot0.result == 0 then pg.TipsMgr.GetInstance():ShowTips(i18n("event_giveup_success")) slot2, slot3 = getProxy(EventProxy):findInfoById(uv0) slot2.state = EventInfo.StateNone pg.ShipFlagMgr.GetInstance():UpdateFlagShips("inEvent") uv1:sendNotification(GAME.EVENT_LIST_UPDATE) else pg.TipsMgr.GetInstance():ShowTips(errorTip("event_giveup_fail", slot0.result)) end end) end return slot0