本文整理汇总了Python中horizons.util.loaders.actionsetloader.ActionSetLoader._find_action_sets方法的典型用法代码示例。如果您正苦于以下问题:Python ActionSetLoader._find_action_sets方法的具体用法?Python ActionSetLoader._find_action_sets怎么用?Python ActionSetLoader._find_action_sets使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类horizons.util.loaders.actionsetloader.ActionSetLoader
的用法示例。
在下文中一共展示了ActionSetLoader._find_action_sets方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: dict
# 需要导入模块: from horizons.util.loaders.actionsetloader import ActionSetLoader [as 别名]
# 或者: from horizons.util.loaders.actionsetloader.ActionSetLoader import _find_action_sets [as 别名]
#!/usr/bin/env python3
import itertools
import operator
import os
import sys
DOCS_PATH = os.path.dirname(os.path.abspath(__file__))
from init import db
from horizons.constants import BUILDINGS, TIER, UNITS
from horizons.entities import Entities
from horizons.util.loaders.actionsetloader import ActionSetLoader
ActionSetLoader._find_action_sets('content/')
settler_names = dict(db('SELECT level, name FROM tier'))
unit_sets = dict((u.id, u.action_sets) for u in Entities.units.values())
SHIP_THUMBNAIL = 'content/gui/icons/units/thumbnails/{type_id}.png'
RES_PATH = 'content/gui/icons/resources/32/{id:03d}.png'
global gh, used_res_ids
gh = 'https://github.com/unknown-horizons/unknown-horizons/raw/master/'
#gh = 'file://localhost/{path}/'.format(path=os.path.abspath(sys.argv[1]))
used_res_ids = set()
footer = set()
header = """
Buildings Overview
==================