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

factionGoal.py (813B)


      1 #Embedded file name: C:\BuildAgent\work\20d73f1b24eed06e\eve\release\V24.01\eve\client\script\ui\shared\agencyNew\factionGoal.py
      2 import uuid
      3 
      4 class FactionGoal(object):
      5 
      6     def __init__(self, proto):
      7         self.goalID = uuid.UUID(bytes=proto.goal.uuid)
      8         self.factionID = proto.attributes.faction.sequential
      9         self.progress = proto.attributes.progress
     10         self.target = proto.attributes.target
     11         self.uiAnnotations = {}
     12         for annotation in proto.attributes.ui_annotations:
     13             self.uiAnnotations[annotation.key] = annotation.value
     14 
     15     def __repr__(self):
     16         return 'Faction Goal - ID: %s, factionID: %d, progress: %d, target: %d, annotations: %s' % (str(self.goalID),
     17          self.factionID,
     18          self.progress,
     19          self.target,
     20          self.uiAnnotations)