NovaBryan/EVE_Dump
Log | Files | 📦 下载最新源码 (.zip) | Refs | README

mutualWarInvites.py (1267B)


      1 #Embedded file name: C:\BuildAgent\work\20d73f1b24eed06e\eve\release\V24.01\eve\client\script\ui\services\wars\mutualWarInvites.py
      2 from carbon.common.script.sys.service import Service
      3 
      4 class MutualWarInvites(Service):
      5     __guid__ = 'svc.mutualWarInvites'
      6     __servicename__ = 'mutualWarInvites'
      7     __displayname__ = 'Mutual War Invite Client Service'
      8     __dependencies__ = []
      9     __notifyevents__ = ['OnMutualWarsUpdated_Remote']
     10 
     11     def GetInvites(self):
     12         invites = sm.RemoteSvc('mutualWarInviteMgr').GetPendingInvitesForSession()
     13         return invites
     14 
     15     def SendInvite(self, toOwnerID):
     16         sm.RemoteSvc('mutualWarInviteMgr').SendInviteByPlayer(toOwnerID)
     17 
     18     def WithdrawInvite(self, toOwnerID):
     19         sm.RemoteSvc('mutualWarInviteMgr').WithdrawInviteByPlayer(toOwnerID)
     20 
     21     def RespondToInvite(self, fromOwnerID, accepts):
     22         sm.RemoteSvc('mutualWarInviteMgr').RespondToInviteByPlayer(fromOwnerID, accepts)
     23 
     24     def OnMutualWarsUpdated_Remote(self):
     25         sm.ScatterEvent('OnMutualWarsUpdated')
     26 
     27     def SetInvitesBlocked(self, blocked):
     28         sm.RemoteSvc('mutualWarInviteMgr').SetInvitesBlockedByPlayer(blocked)
     29 
     30     def IsCorpInvitesBlocked(self):
     31         return sm.RemoteSvc('mutualWarInviteMgr').IsCorpInvitesBlockedPlayer()