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

qaconst.py (2729B)


      1 #Embedded file name: C:\BuildAgent\work\20d73f1b24eed06e\eve\release\V24.01\packages\cosmetics\client\messengers\entitlements\corporation\structure\qaconst.py
      2 FORCE_STRUCTURE_ISSUE_LICENSE_ERRORS = False
      3 FORCE_STRUCTURE_GET_LICENSE_ERRORS = False
      4 FORCE_STRUCTURE_GET_LICENSE_RANDOM_ERRORS = False
      5 FORCE_STRUCTURE_GET_LICENSE_CATALOGUE_ERRORS = False
      6 FORCE_STRUCTURE_GET_COSMETIC_STATE_ERRORS = False
      7 FORCE_STRUCTURE_REVOKE_LICENSE_ERRORS = False
      8 FORCE_STRUCTURE_ISSUE_LICENSE_DELAY = 0
      9 FORCE_STRUCTURE_GET_LICENSE_DELAY = 0
     10 FORCE_STRUCTURE_GET_LICENSE_CATALOGUE_DELAY = 0
     11 FORCE_STRUCTURE_GET_COSMETIC_STATE_DELAY = 0
     12 FORCE_STRUCTURE_REVOKE_LICENSE_DELAY = 0
     13 
     14 def flush_cache():
     15     sm.GetService('cosmeticsLicenseSvc').flush_paintwork_cache()
     16 
     17 
     18 def set_force_structure_issue_license_errors(enabled):
     19     global FORCE_STRUCTURE_ISSUE_LICENSE_ERRORS
     20     flush_cache()
     21     FORCE_STRUCTURE_ISSUE_LICENSE_ERRORS = enabled
     22 
     23 
     24 def set_force_structure_get_license_errors(enabled):
     25     global FORCE_STRUCTURE_GET_LICENSE_ERRORS
     26     flush_cache()
     27     FORCE_STRUCTURE_GET_LICENSE_ERRORS = enabled
     28 
     29 
     30 def set_force_structure_get_license_random_errors(enabled):
     31     global FORCE_STRUCTURE_GET_LICENSE_RANDOM_ERRORS
     32     flush_cache()
     33     FORCE_STRUCTURE_GET_LICENSE_RANDOM_ERRORS = enabled
     34 
     35 
     36 def set_force_structure_get_license_catalogue_errors(enabled):
     37     global FORCE_STRUCTURE_GET_LICENSE_CATALOGUE_ERRORS
     38     flush_cache()
     39     FORCE_STRUCTURE_GET_LICENSE_CATALOGUE_ERRORS = enabled
     40 
     41 
     42 def set_force_structure_get_cosmetic_state_errors(enabled):
     43     global FORCE_STRUCTURE_GET_COSMETIC_STATE_ERRORS
     44     flush_cache()
     45     FORCE_STRUCTURE_GET_COSMETIC_STATE_ERRORS = enabled
     46 
     47 
     48 def set_force_structure_revoke_license_errors(enabled):
     49     global FORCE_STRUCTURE_REVOKE_LICENSE_ERRORS
     50     flush_cache()
     51     FORCE_STRUCTURE_REVOKE_LICENSE_ERRORS = enabled
     52 
     53 
     54 def set_force_structure_issue_license_delay(seconds):
     55     global FORCE_STRUCTURE_ISSUE_LICENSE_DELAY
     56     flush_cache()
     57     FORCE_STRUCTURE_ISSUE_LICENSE_DELAY = seconds
     58 
     59 
     60 def set_force_structure_get_license_delay(seconds):
     61     global FORCE_STRUCTURE_GET_LICENSE_DELAY
     62     flush_cache()
     63     FORCE_STRUCTURE_GET_LICENSE_DELAY = seconds
     64 
     65 
     66 def set_force_structure_get_license_catalogue_delay(seconds):
     67     global FORCE_STRUCTURE_GET_LICENSE_CATALOGUE_DELAY
     68     flush_cache()
     69     FORCE_STRUCTURE_GET_LICENSE_CATALOGUE_DELAY = seconds
     70 
     71 
     72 def set_force_structure_get_cosmetic_state_delay(seconds):
     73     global FORCE_STRUCTURE_GET_COSMETIC_STATE_DELAY
     74     flush_cache()
     75     FORCE_STRUCTURE_GET_COSMETIC_STATE_DELAY = seconds
     76 
     77 
     78 def set_force_structure_revoke_license_delay(seconds):
     79     global FORCE_STRUCTURE_REVOKE_LICENSE_DELAY
     80     flush_cache()
     81     FORCE_STRUCTURE_REVOKE_LICENSE_DELAY = seconds