1
This commit is contained in:
parent
2b2b5315d5
commit
2ac44f8816
@ -633,7 +633,7 @@ namespace behaviac
|
|||||||
|
|
||||||
virtual bool load()
|
virtual bool load()
|
||||||
{
|
{
|
||||||
AgentMeta::SetTotalSignature(2900147864u);
|
AgentMeta::SetTotalSignature(4002927094u);
|
||||||
|
|
||||||
AgentMeta* meta = NULL;
|
AgentMeta* meta = NULL;
|
||||||
BEHAVIAC_UNUSED_VAR(meta);
|
BEHAVIAC_UNUSED_VAR(meta);
|
||||||
@ -750,7 +750,7 @@ namespace behaviac
|
|||||||
meta->RegisterMethod(502968959u, BEHAVIAC_NEW CMethod_behaviac_Agent_VectorRemove());
|
meta->RegisterMethod(502968959u, BEHAVIAC_NEW CMethod_behaviac_Agent_VectorRemove());
|
||||||
|
|
||||||
// HeroAgent
|
// HeroAgent
|
||||||
meta = BEHAVIAC_NEW AgentMeta(3488849203u);
|
meta = BEHAVIAC_NEW AgentMeta(926738999u);
|
||||||
AgentMeta::GetAgentMetas()[2270112014u] = meta;
|
AgentMeta::GetAgentMetas()[2270112014u] = meta;
|
||||||
meta->RegisterMemberProperty(2706111800u, BEHAVIAC_NEW CMemberProperty< TargetAgent* >("current_target_agent", Set_HeroAgent_current_target_agent, Get_HeroAgent_current_target_agent));
|
meta->RegisterMemberProperty(2706111800u, BEHAVIAC_NEW CMemberProperty< TargetAgent* >("current_target_agent", Set_HeroAgent_current_target_agent, Get_HeroAgent_current_target_agent));
|
||||||
meta->RegisterMemberProperty(3525744799u, BEHAVIAC_NEW CMemberProperty< TeammateAgent* >("current_teammate_agent", Set_HeroAgent_current_teammate_agent, Get_HeroAgent_current_teammate_agent));
|
meta->RegisterMemberProperty(3525744799u, BEHAVIAC_NEW CMemberProperty< TeammateAgent* >("current_teammate_agent", Set_HeroAgent_current_teammate_agent, Get_HeroAgent_current_teammate_agent));
|
||||||
@ -811,6 +811,7 @@ namespace behaviac
|
|||||||
meta->RegisterMethod(961264360u, BEHAVIAC_NEW CAgentMethodVoid_2<int, int>(FunctionPointer_HeroAgent_DecV));
|
meta->RegisterMethod(961264360u, BEHAVIAC_NEW CAgentMethodVoid_2<int, int>(FunctionPointer_HeroAgent_DecV));
|
||||||
meta->RegisterMethod(1811924796u, BEHAVIAC_NEW CAgentMethod_1< int, int >(FunctionPointer_HeroAgent_DeltaTime));
|
meta->RegisterMethod(1811924796u, BEHAVIAC_NEW CAgentMethod_1< int, int >(FunctionPointer_HeroAgent_DeltaTime));
|
||||||
meta->RegisterMethod(3850832265u, BEHAVIAC_NEW CAgentMethodVoid_2<glm::vec3&, float>(FunctionPointer_HeroAgent_FollowMaster) /* FollowMaster */);
|
meta->RegisterMethod(3850832265u, BEHAVIAC_NEW CAgentMethodVoid_2<glm::vec3&, float>(FunctionPointer_HeroAgent_FollowMaster) /* FollowMaster */);
|
||||||
|
meta->RegisterMethod(337666808u, BEHAVIAC_NEW CAgentMethodVoid_2<glm::vec3&, float>(FunctionPointer_HeroAgent_FollowTeammate) /* FollowTeammate */);
|
||||||
meta->RegisterMethod(3395125024u, BEHAVIAC_NEW CAgentMethod< int >(FunctionPointer_HeroAgent_GetAgentType));
|
meta->RegisterMethod(3395125024u, BEHAVIAC_NEW CAgentMethod< int >(FunctionPointer_HeroAgent_GetAgentType));
|
||||||
meta->RegisterMethod(1962280222u, BEHAVIAC_NEW CAgentMethod< int >(FunctionPointer_HeroAgent_GetAliveEnemyNum));
|
meta->RegisterMethod(1962280222u, BEHAVIAC_NEW CAgentMethod< int >(FunctionPointer_HeroAgent_GetAliveEnemyNum));
|
||||||
meta->RegisterMethod(755433673u, BEHAVIAC_NEW CAgentMethod< int >(FunctionPointer_HeroAgent_GetBattleTimes));
|
meta->RegisterMethod(755433673u, BEHAVIAC_NEW CAgentMethod< int >(FunctionPointer_HeroAgent_GetBattleTimes));
|
||||||
@ -920,7 +921,7 @@ namespace behaviac
|
|||||||
meta->RegisterMethod(502968959u, BEHAVIAC_NEW CMethod_behaviac_Agent_VectorRemove());
|
meta->RegisterMethod(502968959u, BEHAVIAC_NEW CMethod_behaviac_Agent_VectorRemove());
|
||||||
|
|
||||||
// AndroidAgent
|
// AndroidAgent
|
||||||
meta = BEHAVIAC_NEW AgentMeta(1894141024u);
|
meta = BEHAVIAC_NEW AgentMeta(1303304095u);
|
||||||
AgentMeta::GetAgentMetas()[2475098143u] = meta;
|
AgentMeta::GetAgentMetas()[2475098143u] = meta;
|
||||||
meta->RegisterMemberProperty(2706111800u, BEHAVIAC_NEW CMemberProperty< TargetAgent* >("current_target_agent", Set_HeroAgent_current_target_agent, Get_HeroAgent_current_target_agent));
|
meta->RegisterMemberProperty(2706111800u, BEHAVIAC_NEW CMemberProperty< TargetAgent* >("current_target_agent", Set_HeroAgent_current_target_agent, Get_HeroAgent_current_target_agent));
|
||||||
meta->RegisterMemberProperty(3525744799u, BEHAVIAC_NEW CMemberProperty< TeammateAgent* >("current_teammate_agent", Set_HeroAgent_current_teammate_agent, Get_HeroAgent_current_teammate_agent));
|
meta->RegisterMemberProperty(3525744799u, BEHAVIAC_NEW CMemberProperty< TeammateAgent* >("current_teammate_agent", Set_HeroAgent_current_teammate_agent, Get_HeroAgent_current_teammate_agent));
|
||||||
@ -981,6 +982,7 @@ namespace behaviac
|
|||||||
meta->RegisterMethod(961264360u, BEHAVIAC_NEW CAgentMethodVoid_2<int, int>(FunctionPointer_AndroidAgent_DecV));
|
meta->RegisterMethod(961264360u, BEHAVIAC_NEW CAgentMethodVoid_2<int, int>(FunctionPointer_AndroidAgent_DecV));
|
||||||
meta->RegisterMethod(1811924796u, BEHAVIAC_NEW CAgentMethod_1< int, int >(FunctionPointer_AndroidAgent_DeltaTime));
|
meta->RegisterMethod(1811924796u, BEHAVIAC_NEW CAgentMethod_1< int, int >(FunctionPointer_AndroidAgent_DeltaTime));
|
||||||
meta->RegisterMethod(3850832265u, BEHAVIAC_NEW CAgentMethodVoid_2<glm::vec3&, float>(FunctionPointer_AndroidAgent_FollowMaster) /* FollowMaster */);
|
meta->RegisterMethod(3850832265u, BEHAVIAC_NEW CAgentMethodVoid_2<glm::vec3&, float>(FunctionPointer_AndroidAgent_FollowMaster) /* FollowMaster */);
|
||||||
|
meta->RegisterMethod(337666808u, BEHAVIAC_NEW CAgentMethodVoid_2<glm::vec3&, float>(FunctionPointer_AndroidAgent_FollowTeammate) /* FollowTeammate */);
|
||||||
meta->RegisterMethod(397371422u, BEHAVIAC_NEW CAgentMethod< behaviac::string >(FunctionPointer_AndroidAgent_GetAccountId));
|
meta->RegisterMethod(397371422u, BEHAVIAC_NEW CAgentMethod< behaviac::string >(FunctionPointer_AndroidAgent_GetAccountId));
|
||||||
meta->RegisterMethod(3395125024u, BEHAVIAC_NEW CAgentMethod< int >(FunctionPointer_AndroidAgent_GetAgentType));
|
meta->RegisterMethod(3395125024u, BEHAVIAC_NEW CAgentMethod< int >(FunctionPointer_AndroidAgent_GetAgentType));
|
||||||
meta->RegisterMethod(1962280222u, BEHAVIAC_NEW CAgentMethod< int >(FunctionPointer_AndroidAgent_GetAliveEnemyNum));
|
meta->RegisterMethod(1962280222u, BEHAVIAC_NEW CAgentMethod< int >(FunctionPointer_AndroidAgent_GetAliveEnemyNum));
|
||||||
|
@ -185,6 +185,7 @@ namespace behaviac
|
|||||||
inline void FunctionPointer_HeroAgent_DecV(Agent* self, int id, int val) { ((HeroAgent*)self)->_Execute_Method_<METHOD_TYPE_HeroAgent_DecV, void, int, int >(id, val); }
|
inline void FunctionPointer_HeroAgent_DecV(Agent* self, int id, int val) { ((HeroAgent*)self)->_Execute_Method_<METHOD_TYPE_HeroAgent_DecV, void, int, int >(id, val); }
|
||||||
inline int FunctionPointer_HeroAgent_DeltaTime(Agent* self, int time) { return ((HeroAgent*)self)->DeltaTime(time); }
|
inline int FunctionPointer_HeroAgent_DeltaTime(Agent* self, int time) { return ((HeroAgent*)self)->DeltaTime(time); }
|
||||||
inline void FunctionPointer_HeroAgent_FollowMaster(Agent* self, glm::vec3& loc_point0, float loc_val0) { } /* FollowMaster */
|
inline void FunctionPointer_HeroAgent_FollowMaster(Agent* self, glm::vec3& loc_point0, float loc_val0) { } /* FollowMaster */
|
||||||
|
inline void FunctionPointer_HeroAgent_FollowTeammate(Agent* self, glm::vec3& loc_point0, float loc_val0) { } /* FollowTeammate */
|
||||||
inline int FunctionPointer_HeroAgent_GetAgentType(Agent* self) { return ((HeroAgent*)self)->GetAgentType(); }
|
inline int FunctionPointer_HeroAgent_GetAgentType(Agent* self) { return ((HeroAgent*)self)->GetAgentType(); }
|
||||||
inline int FunctionPointer_HeroAgent_GetAliveEnemyNum(Agent* self) { return ((HeroAgent*)self)->GetAliveEnemyNum(); }
|
inline int FunctionPointer_HeroAgent_GetAliveEnemyNum(Agent* self) { return ((HeroAgent*)self)->GetAliveEnemyNum(); }
|
||||||
inline int FunctionPointer_HeroAgent_GetBattleTimes(Agent* self) { return ((HeroAgent*)self)->GetBattleTimes(); }
|
inline int FunctionPointer_HeroAgent_GetBattleTimes(Agent* self) { return ((HeroAgent*)self)->GetBattleTimes(); }
|
||||||
@ -312,6 +313,7 @@ namespace behaviac
|
|||||||
inline void FunctionPointer_AndroidAgent_DecV(Agent* self, int id, int val) { ((HeroAgent*)self)->_Execute_Method_<METHOD_TYPE_HeroAgent_DecV, void, int, int >(id, val); }
|
inline void FunctionPointer_AndroidAgent_DecV(Agent* self, int id, int val) { ((HeroAgent*)self)->_Execute_Method_<METHOD_TYPE_HeroAgent_DecV, void, int, int >(id, val); }
|
||||||
inline int FunctionPointer_AndroidAgent_DeltaTime(Agent* self, int time) { return ((AndroidAgent*)self)->DeltaTime(time); }
|
inline int FunctionPointer_AndroidAgent_DeltaTime(Agent* self, int time) { return ((AndroidAgent*)self)->DeltaTime(time); }
|
||||||
inline void FunctionPointer_AndroidAgent_FollowMaster(Agent* self, glm::vec3& loc_point0, float loc_val0) { } /* FollowMaster */
|
inline void FunctionPointer_AndroidAgent_FollowMaster(Agent* self, glm::vec3& loc_point0, float loc_val0) { } /* FollowMaster */
|
||||||
|
inline void FunctionPointer_AndroidAgent_FollowTeammate(Agent* self, glm::vec3& loc_point0, float loc_val0) { } /* FollowTeammate */
|
||||||
inline behaviac::string FunctionPointer_AndroidAgent_GetAccountId(Agent* self) { return ((AndroidAgent*)self)->GetAccountId(); }
|
inline behaviac::string FunctionPointer_AndroidAgent_GetAccountId(Agent* self) { return ((AndroidAgent*)self)->GetAccountId(); }
|
||||||
inline int FunctionPointer_AndroidAgent_GetAgentType(Agent* self) { return ((AndroidAgent*)self)->GetAgentType(); }
|
inline int FunctionPointer_AndroidAgent_GetAgentType(Agent* self) { return ((AndroidAgent*)self)->GetAgentType(); }
|
||||||
inline int FunctionPointer_AndroidAgent_GetAliveEnemyNum(Agent* self) { return ((AndroidAgent*)self)->GetAliveEnemyNum(); }
|
inline int FunctionPointer_AndroidAgent_GetAliveEnemyNum(Agent* self) { return ((AndroidAgent*)self)->GetAliveEnemyNum(); }
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<!--EXPORTED BY TOOL, DON'T MODIFY IT!-->
|
<!--EXPORTED BY TOOL, DON'T MODIFY IT!-->
|
||||||
<agents version="1" signature="2900147864">
|
<agents version="1" signature="4002927094">
|
||||||
<agent type="HeroAgent" base="BaseAgent" signature="3488849203">
|
<agent type="HeroAgent" base="BaseAgent" signature="926738999">
|
||||||
<properties>
|
<properties>
|
||||||
<property name="current_target_agent" type="TargetAgent*" member="false" static="false" defaultvalue="null" />
|
<property name="current_target_agent" type="TargetAgent*" member="false" static="false" defaultvalue="null" />
|
||||||
<property name="current_teammate_agent" type="TeammateAgent*" member="false" static="false" defaultvalue="null" />
|
<property name="current_teammate_agent" type="TeammateAgent*" member="false" static="false" defaultvalue="null" />
|
||||||
@ -32,7 +32,7 @@
|
|||||||
<property name="tmp_val4" type="float" member="false" static="false" defaultvalue="0" />
|
<property name="tmp_val4" type="float" member="false" static="false" defaultvalue="0" />
|
||||||
</properties>
|
</properties>
|
||||||
</agent>
|
</agent>
|
||||||
<agent type="AndroidAgent" base="HeroAgent" signature="1894141024">
|
<agent type="AndroidAgent" base="HeroAgent" signature="1303304095">
|
||||||
<properties>
|
<properties>
|
||||||
<property name="current_target_agent" type="TargetAgent*" member="false" static="false" defaultvalue="null" />
|
<property name="current_target_agent" type="TargetAgent*" member="false" static="false" defaultvalue="null" />
|
||||||
<property name="current_teammate_agent" type="TeammateAgent*" member="false" static="false" defaultvalue="null" />
|
<property name="current_teammate_agent" type="TeammateAgent*" member="false" static="false" defaultvalue="null" />
|
||||||
|
@ -32,41 +32,65 @@
|
|||||||
<property ReferenceBehavior="const string "task/RunGas"" />
|
<property ReferenceBehavior="const string "task/RunGas"" />
|
||||||
<property Task="Self.HeroAgent::RunGas(0,0,0)" />
|
<property Task="Self.HeroAgent::RunGas(0,0,0)" />
|
||||||
</node>
|
</node>
|
||||||
<node class="IfElse" id="6">
|
<node class="Sequence" id="18">
|
||||||
<node class="Condition" id="7">
|
<node class="SelectorProbability" id="23">
|
||||||
<property Operator="Equal" />
|
<node class="DecoratorWeight" id="24">
|
||||||
<property Opl="Self.HeroAgent::SearchEnemy(500)" />
|
<property DecorateWhenChildEnds="false" />
|
||||||
<property Opr="const behaviac::EBTStatus BT_SUCCESS" />
|
<property Weight="const int 50" />
|
||||||
</node>
|
<node class="IfElse" id="6">
|
||||||
<node class="ReferencedBehavior" id="8">
|
<node class="Condition" id="7">
|
||||||
<property ReferenceBehavior="const string "task/ChaseToKill"" />
|
<property Operator="Equal" />
|
||||||
<property Task="Self.HeroAgent::ChaseToKill(0,0,0)" />
|
<property Opl="Self.HeroAgent::SearchEnemy(500)" />
|
||||||
</node>
|
<property Opr="const behaviac::EBTStatus BT_SUCCESS" />
|
||||||
<node class="Sequence" id="17">
|
</node>
|
||||||
<node class="SelectorProbability" id="9">
|
<node class="ReferencedBehavior" id="8">
|
||||||
<node class="DecoratorWeight" id="10">
|
<property ReferenceBehavior="const string "task/ChaseToKill"" />
|
||||||
<property DecorateWhenChildEnds="false" />
|
<property Task="Self.HeroAgent::ChaseToKill(0,0,0)" />
|
||||||
<property Weight="const int 50" />
|
</node>
|
||||||
<node class="ReferencedBehavior" id="11">
|
<node class="Sequence" id="17">
|
||||||
<property ReferenceBehavior="const string "task/RandomWalk"" />
|
<node class="SelectorProbability" id="9">
|
||||||
<property Task="Self.HeroAgent::RandomWalk(0,0,{x=0;y=0;z=0;})" />
|
<node class="DecoratorWeight" id="10">
|
||||||
|
<property DecorateWhenChildEnds="false" />
|
||||||
|
<property Weight="const int 50" />
|
||||||
|
<node class="ReferencedBehavior" id="11">
|
||||||
|
<property ReferenceBehavior="const string "task/RandomWalk"" />
|
||||||
|
<property Task="Self.HeroAgent::RandomWalk(0,0,{x=0;y=0;z=0;})" />
|
||||||
|
</node>
|
||||||
|
</node>
|
||||||
|
<node class="DecoratorWeight" id="12">
|
||||||
|
<property DecorateWhenChildEnds="false" />
|
||||||
|
<property Weight="const int 100" />
|
||||||
|
<node class="ReferencedBehavior" id="13">
|
||||||
|
<property ReferenceBehavior="const string "task/RandomShot"" />
|
||||||
|
<property Task="Self.HeroAgent::RandomShot(0,0,{x=0;y=0;z=0;})" />
|
||||||
|
</node>
|
||||||
|
</node>
|
||||||
|
<node class="DecoratorWeight" id="14">
|
||||||
|
<property DecorateWhenChildEnds="false" />
|
||||||
|
<property Weight="const int 60" />
|
||||||
|
<node class="Action" id="15">
|
||||||
|
<property Method="Self.HeroAgent::CoIdle(2000,4000)" />
|
||||||
|
<property ResultOption="BT_INVALID" />
|
||||||
|
</node>
|
||||||
|
</node>
|
||||||
|
</node>
|
||||||
</node>
|
</node>
|
||||||
</node>
|
</node>
|
||||||
<node class="DecoratorWeight" id="12">
|
</node>
|
||||||
<property DecorateWhenChildEnds="false" />
|
<node class="DecoratorWeight" id="25">
|
||||||
<property Weight="const int 100" />
|
<property DecorateWhenChildEnds="false" />
|
||||||
<node class="ReferencedBehavior" id="13">
|
<property Weight="const int 50" />
|
||||||
<property ReferenceBehavior="const string "task/RandomShot"" />
|
<node class="IfElse" id="19">
|
||||||
<property Task="Self.HeroAgent::RandomShot(0,0,{x=0;y=0;z=0;})" />
|
<node class="Condition" id="20">
|
||||||
|
<property Operator="Equal" />
|
||||||
|
<property Opl="Self.HeroAgent::SearchTeammate(800)" />
|
||||||
|
<property Opr="const bool true" />
|
||||||
</node>
|
</node>
|
||||||
</node>
|
<node class="ReferencedBehavior" id="21">
|
||||||
<node class="DecoratorWeight" id="14">
|
<property ReferenceBehavior="const string "task/FollowTeammate"" />
|
||||||
<property DecorateWhenChildEnds="false" />
|
<property Task="Self.HeroAgent::FollowTeammate({x=0;y=0;z=0;},0)" />
|
||||||
<property Weight="const int 60" />
|
|
||||||
<node class="Action" id="15">
|
|
||||||
<property Method="Self.HeroAgent::CoIdle(2000,4000)" />
|
|
||||||
<property ResultOption="BT_INVALID" />
|
|
||||||
</node>
|
</node>
|
||||||
|
<node class="True" id="22" />
|
||||||
</node>
|
</node>
|
||||||
</node>
|
</node>
|
||||||
</node>
|
</node>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user