Files
cultivation-world-simulator/src/classes/action/__init__.py
2025-10-21 22:53:13 +08:00

99 lines
2.6 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
from __future__ import annotations
# 基类与工具
from .action import (
Action,
DefineAction,
LLMAction,
ChunkActionMixin,
ActualActionMixin,
InstantAction,
TimedAction,
long_action,
)
from .registry import register_action
# 具体动作(按文件拆分)
from .move import Move
from .move_to_region import MoveToRegion
from .move_to_avatar import MoveToAvatar
from .move_away_from_avatar import MoveAwayFromAvatar
from .move_away_from_region import MoveAwayFromRegion
from .escape import Escape
from .cultivate import Cultivate
from .breakthrough import Breakthrough
from .play import Play
from .hunt import Hunt
from .harvest import Harvest
from .sold import SellItems
from .battle import Battle
from .plunder_mortals import PlunderMortals
from .help_mortals import HelpMortals
from .talk import Talk
from .devour_mortals import DevourMortals
from .self_heal import SelfHeal
from .catch import Catch
# 注册到 ActionRegistry标注是否为实际可执行动作
register_action(actual=False)(Action)
register_action(actual=False)(DefineAction)
register_action(actual=False)(LLMAction)
register_action(actual=False)(ChunkActionMixin)
register_action(actual=False)(ActualActionMixin)
register_action(actual=False)(InstantAction)
register_action(actual=False)(TimedAction)
register_action(actual=False)(Move)
register_action(actual=True)(MoveToRegion)
register_action(actual=True)(MoveToAvatar)
register_action(actual=True)(MoveAwayFromAvatar)
register_action(actual=True)(MoveAwayFromRegion)
register_action(actual=False)(Escape)
register_action(actual=True)(Cultivate)
register_action(actual=True)(Breakthrough)
register_action(actual=True)(Play)
register_action(actual=True)(Hunt)
register_action(actual=True)(Harvest)
register_action(actual=True)(SellItems)
register_action(actual=False)(Battle)
register_action(actual=True)(PlunderMortals)
register_action(actual=True)(HelpMortals)
register_action(actual=True)(Talk)
register_action(actual=True)(DevourMortals)
register_action(actual=True)(SelfHeal)
register_action(actual=True)(Catch)
__all__ = [
# 基类
"Action",
"DefineAction",
"LLMAction",
"ChunkActionMixin",
"ActualActionMixin",
"InstantAction",
"TimedAction",
"long_action",
# 派生类
"Move",
"MoveToRegion",
"MoveToAvatar",
"MoveAwayFromAvatar",
"MoveAwayFromRegion",
"Escape",
"Cultivate",
"Breakthrough",
"Play",
"Hunt",
"Harvest",
"SellItems",
"Battle",
"PlunderMortals",
"HelpMortals",
"Talk",
"DevourMortals",
"SelfHeal",
"Catch",
]