%%---------------------------------------------------- %% {{description}} %% 该文件由程序生成,不要手动修改 %% @author yeahoo2000@gmail.com %% @end %%---------------------------------------------------- -module({{mod_name}}). -export([ cfg/0 ,trigger/1 ] ). -include("common.hrl"). -include("condition.hrl"). -include("battle.hrl"). -include("unit.hrl"). %% @doc 获取战场配置 -spec cfg() -> #battle_base{}. cfg() -> #battle_base{ id = {{id}} ,name = {{name}} ,map = {{map}} ,type = {{type}} ,enter_point = {{enter_point}} ,unit = {{unit}} ,point = {{point}} ,region = {{region}} ,global = {{global}} ,trigger = {{battle_trigger}} ,combat_launcher = {{combat_launcher}} }. %% @doc 触发器函数 -spec trigger(bitstring()) -> ok. {{trigger}}trigger(Name) -> ?ERR("调用的触器器[~s:trigger(~s)]不存在", [?MODULE, Name]), ok.