Skip to content

Commit 55d1710

Browse files
author
jonli
committed
demo_running using .net framework 4 and CancellationToken
1 parent 60be7a8 commit 55d1710

File tree

2 files changed

+127
-123
lines changed

2 files changed

+127
-123
lines changed

integration/demo_running/behaviac/Base/socketconnect_base.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
using System.Net.Sockets;
2424
using System.Runtime.InteropServices;
2525
using System.Threading;
26+
using System.Threading.Tasks;
2627

2728
namespace behaviac
2829
{
Lines changed: 126 additions & 123 deletions
Original file line numberDiff line numberDiff line change
@@ -1,130 +1,133 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3-
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4-
<PropertyGroup>
5-
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6-
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7-
<ProjectGuid>{43C0C23C-1D1F-40B0-BD08-0030B0EA3197}</ProjectGuid>
8-
<OutputType>Exe</OutputType>
9-
<AppDesignerFolder>Properties</AppDesignerFolder>
10-
<RootNamespace>demo_running</RootNamespace>
11-
<AssemblyName>demo_running</AssemblyName>
12-
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
13-
<FileAlignment>512</FileAlignment>
14-
</PropertyGroup>
15-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
16-
<PlatformTarget>AnyCPU</PlatformTarget>
17-
<DebugSymbols>true</DebugSymbols>
18-
<DebugType>full</DebugType>
19-
<Optimize>false</Optimize>
20-
<OutputPath>bin\Debug\</OutputPath>
21-
<DefineConstants>TRACE;DEBUG;BEHAVIAC_NOT_USE_UNITY</DefineConstants>
22-
<ErrorReport>prompt</ErrorReport>
23-
<WarningLevel>4</WarningLevel>
24-
</PropertyGroup>
25-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
26-
<PlatformTarget>AnyCPU</PlatformTarget>
27-
<DebugType>pdbonly</DebugType>
28-
<Optimize>true</Optimize>
29-
<OutputPath>bin\Release\</OutputPath>
30-
<DefineConstants>TRACE</DefineConstants>
31-
<ErrorReport>prompt</ErrorReport>
32-
<WarningLevel>4</WarningLevel>
33-
</PropertyGroup>
34-
<ItemGroup>
35-
<Reference Include="System" />
36-
<Reference Include="System.Data" />
37-
<Reference Include="System.Xml" />
38-
</ItemGroup>
39-
<ItemGroup>
40-
<Compile Include="behaviac\Agent\Agent.cs" />
41-
<Compile Include="behaviac\Agent\Context.cs" />
42-
<Compile Include="behaviac\Base\Attributs.cs" />
43-
<Compile Include="behaviac\Base\CRC32.cs" />
44-
<Compile Include="behaviac\Base\FileManager.cs" />
45-
<Compile Include="behaviac\Base\LogManager.cs" />
46-
<Compile Include="behaviac\Base\Member.cs" />
47-
<Compile Include="behaviac\Base\Meta.cs" />
48-
<Compile Include="behaviac\Base\MiniXml.cs" />
49-
<Compile Include="behaviac\Base\Operation.cs" />
50-
<Compile Include="behaviac\Base\Properties.cs" />
51-
<Compile Include="behaviac\Base\RandomGenerator.cs" />
52-
<Compile Include="behaviac\Base\socketconnect.cs" />
53-
<Compile Include="behaviac\Base\socketconnect_base.cs" />
54-
<Compile Include="behaviac\Base\Utils.cs" />
55-
<Compile Include="behaviac\BehaviorTree\Attachments\AttachAction.cs" />
56-
<Compile Include="behaviac\BehaviorTree\Attachments\Effector.cs" />
57-
<Compile Include="behaviac\BehaviorTree\Attachments\Event.cs" />
58-
<Compile Include="behaviac\BehaviorTree\Attachments\Precondition.cs" />
59-
<Compile Include="behaviac\BehaviorTree\BehaviorTree.cs" />
60-
<Compile Include="behaviac\BehaviorTree\BehaviorTree_task.cs" />
61-
<Compile Include="behaviac\BehaviorTree\Nodes\Actions\Action.cs" />
62-
<Compile Include="behaviac\BehaviorTree\Nodes\Actions\Assignment.cs" />
63-
<Compile Include="behaviac\BehaviorTree\Nodes\Actions\Compute.cs" />
64-
<Compile Include="behaviac\BehaviorTree\Nodes\Actions\Noop.cs" />
65-
<Compile Include="behaviac\BehaviorTree\Nodes\Actions\Wait.cs" />
66-
<Compile Include="behaviac\BehaviorTree\Nodes\Actions\Waitforsignal.cs" />
67-
<Compile Include="behaviac\BehaviorTree\Nodes\Actions\Waitframes.cs" />
68-
<Compile Include="behaviac\BehaviorTree\Nodes\Composites\Compositestochastic.cs" />
69-
<Compile Include="behaviac\BehaviorTree\Nodes\Composites\Ifelse.cs" />
70-
<Compile Include="behaviac\BehaviorTree\Nodes\Composites\Parallel.cs" />
71-
<Compile Include="behaviac\BehaviorTree\Nodes\Composites\Referencebehavior.cs" />
72-
<Compile Include="behaviac\BehaviorTree\Nodes\Composites\Selector.cs" />
73-
<Compile Include="behaviac\BehaviorTree\Nodes\Composites\Selectorloop.cs" />
74-
<Compile Include="behaviac\BehaviorTree\Nodes\Composites\Selectorprobability.cs" />
75-
<Compile Include="behaviac\BehaviorTree\Nodes\Composites\Selectorstochastic.cs" />
76-
<Compile Include="behaviac\BehaviorTree\Nodes\Composites\Sequence.cs" />
77-
<Compile Include="behaviac\BehaviorTree\Nodes\Composites\Sequencestochastic.cs" />
78-
<Compile Include="behaviac\BehaviorTree\Nodes\Composites\Withprecondition.cs" />
79-
<Compile Include="behaviac\BehaviorTree\Nodes\Conditions\And.cs" />
80-
<Compile Include="behaviac\BehaviorTree\Nodes\Conditions\Condition.cs" />
81-
<Compile Include="behaviac\BehaviorTree\Nodes\Conditions\Conditionbase.cs" />
82-
<Compile Include="behaviac\BehaviorTree\Nodes\Conditions\False.cs" />
83-
<Compile Include="behaviac\BehaviorTree\Nodes\Conditions\Or.cs" />
84-
<Compile Include="behaviac\BehaviorTree\Nodes\Conditions\True.cs" />
85-
<Compile Include="behaviac\BehaviorTree\Nodes\Decorators\Decoratoralwaysfailure.cs" />
86-
<Compile Include="behaviac\BehaviorTree\Nodes\Decorators\Decoratoralwaysrunning.cs" />
87-
<Compile Include="behaviac\BehaviorTree\Nodes\Decorators\Decoratoralwayssuccess.cs" />
88-
<Compile Include="behaviac\BehaviorTree\Nodes\Decorators\Decoratorcount.cs" />
89-
<Compile Include="behaviac\BehaviorTree\Nodes\Decorators\Decoratorcountlimit.cs" />
90-
<Compile Include="behaviac\BehaviorTree\Nodes\Decorators\Decoratorfailureuntil.cs" />
91-
<Compile Include="behaviac\BehaviorTree\Nodes\Decorators\Decoratorframes.cs" />
92-
<Compile Include="behaviac\BehaviorTree\Nodes\Decorators\DecoratorIterator.cs" />
93-
<Compile Include="behaviac\BehaviorTree\Nodes\Decorators\Decoratorlog.cs" />
94-
<Compile Include="behaviac\BehaviorTree\Nodes\Decorators\Decoratorloop.cs" />
95-
<Compile Include="behaviac\BehaviorTree\Nodes\Decorators\Decoratorloopuntil.cs" />
96-
<Compile Include="behaviac\BehaviorTree\Nodes\Decorators\Decoratornot.cs" />
97-
<Compile Include="behaviac\BehaviorTree\Nodes\Decorators\Decoratorrepeat.cs" />
98-
<Compile Include="behaviac\BehaviorTree\Nodes\Decorators\Decoratorsuccessuntil.cs" />
99-
<Compile Include="behaviac\BehaviorTree\Nodes\Decorators\Decoratortime.cs" />
100-
<Compile Include="behaviac\BehaviorTree\Nodes\Decorators\Decoratorweight.cs" />
101-
<Compile Include="behaviac\FSM\AlwaysTransition.cs" />
102-
<Compile Include="behaviac\FSM\FSM.cs" />
103-
<Compile Include="behaviac\FSM\StartCondition.cs" />
104-
<Compile Include="behaviac\FSM\State.cs" />
105-
<Compile Include="behaviac\FSM\TransitionCondition.cs" />
106-
<Compile Include="behaviac\FSM\WaitframesState.cs" />
107-
<Compile Include="behaviac\FSM\WaitState.cs" />
108-
<Compile Include="behaviac\FSM\WaitTransition.cs" />
109-
<Compile Include="behaviac\HTN\AgentState.cs" />
110-
<Compile Include="behaviac\HTN\Method.cs" />
111-
<Compile Include="behaviac\HTN\Planner.cs" />
112-
<Compile Include="behaviac\HTN\PlannerTask.cs" />
113-
<Compile Include="behaviac\HTN\Task.cs" />
114-
<Compile Include="behaviac\Workspace.cs" />
115-
<Compile Include="CBTPlayer.cs" />
116-
<Compile Include="exported\behaviac_generated\behaviors\generated_behaviors.cs" />
117-
<Compile Include="exported\behaviac_generated\types\AgentProperties.cs" />
118-
<Compile Include="Program.cs" />
119-
<Compile Include="Properties\AssemblyInfo.cs" />
120-
</ItemGroup>
121-
<ItemGroup />
122-
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4+
<PropertyGroup>
5+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7+
<ProjectGuid>{43C0C23C-1D1F-40B0-BD08-0030B0EA3197}</ProjectGuid>
8+
<OutputType>Exe</OutputType>
9+
<AppDesignerFolder>Properties</AppDesignerFolder>
10+
<RootNamespace>demo_running</RootNamespace>
11+
<AssemblyName>demo_running</AssemblyName>
12+
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
13+
<FileAlignment>512</FileAlignment>
14+
<TargetFrameworkProfile />
15+
</PropertyGroup>
16+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
17+
<PlatformTarget>AnyCPU</PlatformTarget>
18+
<DebugSymbols>true</DebugSymbols>
19+
<DebugType>full</DebugType>
20+
<Optimize>false</Optimize>
21+
<OutputPath>bin\Debug\</OutputPath>
22+
<DefineConstants>TRACE;DEBUG;BEHAVIAC_NOT_USE_UNITY</DefineConstants>
23+
<ErrorReport>prompt</ErrorReport>
24+
<WarningLevel>4</WarningLevel>
25+
</PropertyGroup>
26+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
27+
<PlatformTarget>AnyCPU</PlatformTarget>
28+
<DebugType>pdbonly</DebugType>
29+
<Optimize>true</Optimize>
30+
<OutputPath>bin\Release\</OutputPath>
31+
<DefineConstants>TRACE</DefineConstants>
32+
<ErrorReport>prompt</ErrorReport>
33+
<WarningLevel>4</WarningLevel>
34+
</PropertyGroup>
35+
<ItemGroup>
36+
<Reference Include="System" />
37+
<Reference Include="System.Data" />
38+
<Reference Include="System.Xml" />
39+
</ItemGroup>
40+
<ItemGroup>
41+
<Compile Include="behaviac\Agent\Agent.cs" />
42+
<Compile Include="behaviac\Agent\Context.cs" />
43+
<Compile Include="behaviac\Base\Attributs.cs" />
44+
<Compile Include="behaviac\Base\CRC32.cs" />
45+
<Compile Include="behaviac\Base\FileManager.cs" />
46+
<Compile Include="behaviac\Base\LogManager.cs" />
47+
<Compile Include="behaviac\Base\Member.cs" />
48+
<Compile Include="behaviac\Base\Meta.cs" />
49+
<Compile Include="behaviac\Base\MiniXml.cs" />
50+
<Compile Include="behaviac\Base\Operation.cs" />
51+
<Compile Include="behaviac\Base\Properties.cs" />
52+
<Compile Include="behaviac\Base\RandomGenerator.cs" />
53+
<Compile Include="behaviac\Base\socketconnect.cs" />
54+
<Compile Include="behaviac\Base\socketconnect_base.cs" />
55+
<Compile Include="behaviac\Base\Utils.cs" />
56+
<Compile Include="behaviac\BehaviorTree\Attachments\AttachAction.cs" />
57+
<Compile Include="behaviac\BehaviorTree\Attachments\Effector.cs" />
58+
<Compile Include="behaviac\BehaviorTree\Attachments\Event.cs" />
59+
<Compile Include="behaviac\BehaviorTree\Attachments\Precondition.cs" />
60+
<Compile Include="behaviac\BehaviorTree\BehaviorTree.cs" />
61+
<Compile Include="behaviac\BehaviorTree\BehaviorTree_task.cs" />
62+
<Compile Include="behaviac\BehaviorTree\Nodes\Actions\Action.cs" />
63+
<Compile Include="behaviac\BehaviorTree\Nodes\Actions\Assignment.cs" />
64+
<Compile Include="behaviac\BehaviorTree\Nodes\Actions\Compute.cs" />
65+
<Compile Include="behaviac\BehaviorTree\Nodes\Actions\Noop.cs" />
66+
<Compile Include="behaviac\BehaviorTree\Nodes\Actions\Wait.cs" />
67+
<Compile Include="behaviac\BehaviorTree\Nodes\Actions\Waitforsignal.cs" />
68+
<Compile Include="behaviac\BehaviorTree\Nodes\Actions\Waitframes.cs" />
69+
<Compile Include="behaviac\BehaviorTree\Nodes\Composites\Compositestochastic.cs" />
70+
<Compile Include="behaviac\BehaviorTree\Nodes\Composites\Ifelse.cs" />
71+
<Compile Include="behaviac\BehaviorTree\Nodes\Composites\Parallel.cs" />
72+
<Compile Include="behaviac\BehaviorTree\Nodes\Composites\Referencebehavior.cs" />
73+
<Compile Include="behaviac\BehaviorTree\Nodes\Composites\Selector.cs" />
74+
<Compile Include="behaviac\BehaviorTree\Nodes\Composites\Selectorloop.cs" />
75+
<Compile Include="behaviac\BehaviorTree\Nodes\Composites\Selectorprobability.cs" />
76+
<Compile Include="behaviac\BehaviorTree\Nodes\Composites\Selectorstochastic.cs" />
77+
<Compile Include="behaviac\BehaviorTree\Nodes\Composites\Sequence.cs" />
78+
<Compile Include="behaviac\BehaviorTree\Nodes\Composites\Sequencestochastic.cs" />
79+
<Compile Include="behaviac\BehaviorTree\Nodes\Composites\Withprecondition.cs" />
80+
<Compile Include="behaviac\BehaviorTree\Nodes\Conditions\And.cs" />
81+
<Compile Include="behaviac\BehaviorTree\Nodes\Conditions\Condition.cs" />
82+
<Compile Include="behaviac\BehaviorTree\Nodes\Conditions\Conditionbase.cs" />
83+
<Compile Include="behaviac\BehaviorTree\Nodes\Conditions\False.cs" />
84+
<Compile Include="behaviac\BehaviorTree\Nodes\Conditions\Or.cs" />
85+
<Compile Include="behaviac\BehaviorTree\Nodes\Conditions\True.cs" />
86+
<Compile Include="behaviac\BehaviorTree\Nodes\Decorators\Decoratoralwaysfailure.cs" />
87+
<Compile Include="behaviac\BehaviorTree\Nodes\Decorators\Decoratoralwaysrunning.cs" />
88+
<Compile Include="behaviac\BehaviorTree\Nodes\Decorators\Decoratoralwayssuccess.cs" />
89+
<Compile Include="behaviac\BehaviorTree\Nodes\Decorators\Decoratorcount.cs" />
90+
<Compile Include="behaviac\BehaviorTree\Nodes\Decorators\Decoratorcountlimit.cs" />
91+
<Compile Include="behaviac\BehaviorTree\Nodes\Decorators\Decoratorfailureuntil.cs" />
92+
<Compile Include="behaviac\BehaviorTree\Nodes\Decorators\Decoratorframes.cs" />
93+
<Compile Include="behaviac\BehaviorTree\Nodes\Decorators\DecoratorIterator.cs" />
94+
<Compile Include="behaviac\BehaviorTree\Nodes\Decorators\Decoratorlog.cs" />
95+
<Compile Include="behaviac\BehaviorTree\Nodes\Decorators\Decoratorloop.cs" />
96+
<Compile Include="behaviac\BehaviorTree\Nodes\Decorators\Decoratorloopuntil.cs" />
97+
<Compile Include="behaviac\BehaviorTree\Nodes\Decorators\Decoratornot.cs" />
98+
<Compile Include="behaviac\BehaviorTree\Nodes\Decorators\Decoratorrepeat.cs" />
99+
<Compile Include="behaviac\BehaviorTree\Nodes\Decorators\Decoratorsuccessuntil.cs" />
100+
<Compile Include="behaviac\BehaviorTree\Nodes\Decorators\Decoratortime.cs" />
101+
<Compile Include="behaviac\BehaviorTree\Nodes\Decorators\Decoratorweight.cs" />
102+
<Compile Include="behaviac\FSM\AlwaysTransition.cs" />
103+
<Compile Include="behaviac\FSM\FSM.cs" />
104+
<Compile Include="behaviac\FSM\StartCondition.cs" />
105+
<Compile Include="behaviac\FSM\State.cs" />
106+
<Compile Include="behaviac\FSM\TransitionCondition.cs" />
107+
<Compile Include="behaviac\FSM\WaitframesState.cs" />
108+
<Compile Include="behaviac\FSM\WaitState.cs" />
109+
<Compile Include="behaviac\FSM\WaitTransition.cs" />
110+
<Compile Include="behaviac\HTN\AgentState.cs" />
111+
<Compile Include="behaviac\HTN\Method.cs" />
112+
<Compile Include="behaviac\HTN\Planner.cs" />
113+
<Compile Include="behaviac\HTN\PlannerTask.cs" />
114+
<Compile Include="behaviac\HTN\Task.cs" />
115+
<Compile Include="behaviac\Workspace.cs" />
116+
<Compile Include="CBTPlayer.cs" />
117+
<Compile Include="exported\behaviac_generated\behaviors\generated_behaviors.cs" />
118+
<Compile Include="exported\behaviac_generated\types\AgentProperties.cs" />
119+
<Compile Include="Program.cs" />
120+
<Compile Include="Properties\AssemblyInfo.cs" />
121+
</ItemGroup>
122+
<ItemGroup>
123+
<None Include="app.config" />
124+
</ItemGroup>
125+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
123126
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
124127
Other similar extension points exist, see Microsoft.Common.targets.
125128
<Target Name="BeforeBuild">
126129
</Target>
127130
<Target Name="AfterBuild">
128131
</Target>
129-
-->
132+
-->
130133
</Project>

0 commit comments

Comments
 (0)