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

definition_attributes.py (1512B)


      1 #Embedded file name: C:\BuildAgent\work\20d73f1b24eed06e\eve\release\V24.01\packages\communitytracks\common\data\definition_attributes.py
      2 from fsdBuiltData.common.base import BuiltDataLoader
      3 if False:
      4     from typing import List
      5 try:
      6     import community_track_templatesLoader
      7 except ImportError:
      8     community_track_templatesLoader = None
      9 
     10 class _CommunityTrackTemplatesDataLoader(BuiltDataLoader):
     11     __resBuiltFile__ = 'res:/staticdata/community_track_templates.fsdbinary'
     12     __clientAutobuildBuiltFile__ = 'eve/autobuild/staticData/client/community_track_templates.fsdbinary'
     13     __serverAutobuildBuiltFile__ = 'eve/autobuild/staticData/server/community_track_templates.fsdbinary'
     14     __loader__ = community_track_templatesLoader
     15 
     16 
     17 def get_definitions_raw_data():
     18     return _CommunityTrackTemplatesDataLoader.GetData()
     19 
     20 
     21 class DefinitionAttributes(object):
     22 
     23     def __init__(self, goal, tale_templates):
     24         self._goal = goal
     25         self._tale_templates = tale_templates
     26 
     27     @property
     28     def goal(self):
     29         return self._goal
     30 
     31     @property
     32     def tale_templates(self):
     33         return self._tale_templates
     34 
     35     def __eq__(self, other):
     36         if other is None:
     37             return False
     38         return self.goal == other.goal and self.tale_templates == other.tale_templates
     39 
     40     def __ne__(self, other):
     41         return not self.__eq__(other)
     42 
     43     def __str__(self):
     44         result = '\nGoal: %s' % self.goal
     45         result += '\nTale Templates: %s' % self.tale_templates
     46         return result