Skip to content

Commit 30c6dd3

Browse files
committed
重构 增加cleverbot
1 parent cbffed5 commit 30c6dd3

File tree

4 files changed

+146
-1
lines changed

4 files changed

+146
-1
lines changed

SApiClient/Assets/Sapi/SpeecherManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ public class SpeecherManager : MonoBehaviour
44
{
55
protected Speecher Speecher;
66

7-
internal void Awake()
7+
protected virtual void Awake()
88
{
99
Speecher = GetComponent<Speecher>();
1010
}
Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup>
4+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
5+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
6+
<ProductVersion>10.0.20506</ProductVersion>
7+
<SchemaVersion>2.0</SchemaVersion>
8+
<ProjectGuid>{A5624E6A-6557-46B1-8F1F-8C073C005538}</ProjectGuid>
9+
<OutputType>Library</OutputType>
10+
<AssemblyName>Assembly-CSharp-Editor</AssemblyName>
11+
<FileAlignment>512</FileAlignment>
12+
<ProjectTypeGuids>{E097FAD1-6243-4DAD-9C02-E9B9EFC3FFC1};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
13+
<TargetFrameworkIdentifier>.NETFramework</TargetFrameworkIdentifier>
14+
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
15+
<TargetFrameworkProfile>Unity Full v3.5</TargetFrameworkProfile>
16+
<CompilerResponseFile>
17+
</CompilerResponseFile>
18+
<UnityProjectType>Editor:5</UnityProjectType>
19+
<UnityBuildTarget>StandaloneWindows:5</UnityBuildTarget>
20+
<UnityVersion>5.6.1f1</UnityVersion>
21+
<RootNamespace>
22+
</RootNamespace>
23+
<LangVersion>4</LangVersion>
24+
</PropertyGroup>
25+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
26+
<DebugType>pdbonly</DebugType>
27+
<Optimize>false</Optimize>
28+
<OutputPath>Temp\UnityVS_bin\Debug\</OutputPath>
29+
<IntermediateOutputPath>Temp\UnityVS_obj\Debug\</IntermediateOutputPath>
30+
<ErrorReport>prompt</ErrorReport>
31+
<WarningLevel>4</WarningLevel>
32+
<DefineConstants>DEBUG;TRACE;UNITY_5_3_OR_NEWER;UNITY_5_4_OR_NEWER;UNITY_5_5_OR_NEWER;UNITY_5_6_OR_NEWER;UNITY_5_6_1;UNITY_5_6;UNITY_5;ENABLE_AUDIO;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_DUCK_TYPING;ENABLE_GENERICS;ENABLE_PVR_GI;ENABLE_MICROPHONE;ENABLE_MULTIPLE_DISPLAYS;ENABLE_PHYSICS;ENABLE_RUNTIME_NAVMESH_BUILDING;ENABLE_SPRITERENDERER_FLIPPING;ENABLE_SPRITES;ENABLE_TERRAIN;ENABLE_RAKNET;ENABLE_UNET;ENABLE_LZMA;ENABLE_UNITYEVENTS;ENABLE_WEBCAM;ENABLE_WWW;ENABLE_CLOUD_SERVICES_COLLAB;ENABLE_CLOUD_SERVICES_ADS;ENABLE_CLOUD_HUB;ENABLE_CLOUD_PROJECT_ID;ENABLE_CLOUD_SERVICES_UNET;ENABLE_CLOUD_SERVICES_BUILD;ENABLE_CLOUD_LICENSE;ENABLE_EDITOR_METRICS;ENABLE_EDITOR_METRICS_CACHING;ENABLE_NATIVE_ARRAY;INCLUDE_DYNAMIC_GI;INCLUDE_GI;PLATFORM_SUPPORTS_MONO;RENDER_SOFTWARE_CURSOR;INCLUDE_PUBNUB;ENABLE_PLAYMODE_TESTS_RUNNER;ENABLE_SCRIPTING_NEW_CSHARP_COMPILER;ENABLE_VIDEO;UNITY_STANDALONE_WIN;UNITY_STANDALONE;ENABLE_SUBSTANCE;ENABLE_RUNTIME_GI;ENABLE_MOVIES;ENABLE_NETWORK;ENABLE_CRUNCH_TEXTURE_COMPRESSION;ENABLE_UNITYWEBREQUEST;ENABLE_CLOUD_SERVICES;ENABLE_CLOUD_SERVICES_ANALYTICS;ENABLE_CLOUD_SERVICES_PURCHASING;ENABLE_CLOUD_SERVICES_CRASH_REPORTING;ENABLE_EVENT_QUEUE;ENABLE_CLUSTERINPUT;ENABLE_VR;ENABLE_WEBSOCKET_HOST;ENABLE_MONO;NET_2_0_SUBSET;ENABLE_PROFILER;DEBUG;TRACE;UNITY_ASSERTIONS;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_WIN;ENABLE_NATIVE_ARRAY_CHECKS;UNITY_TEAM_LICENSE;ENABLE_VSTU;UNITY_PRO_LICENSE</DefineConstants>
33+
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
34+
</PropertyGroup>
35+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
36+
<DebugType>pdbonly</DebugType>
37+
<Optimize>false</Optimize>
38+
<OutputPath>Temp\UnityVS_bin\Release\</OutputPath>
39+
<IntermediateOutputPath>Temp\UnityVS_obj\Release\</IntermediateOutputPath>
40+
<ErrorReport>prompt</ErrorReport>
41+
<WarningLevel>4</WarningLevel>
42+
<DefineConstants>TRACE;UNITY_5_3_OR_NEWER;UNITY_5_4_OR_NEWER;UNITY_5_5_OR_NEWER;UNITY_5_6_OR_NEWER;UNITY_5_6_1;UNITY_5_6;UNITY_5;ENABLE_AUDIO;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_DUCK_TYPING;ENABLE_GENERICS;ENABLE_PVR_GI;ENABLE_MICROPHONE;ENABLE_MULTIPLE_DISPLAYS;ENABLE_PHYSICS;ENABLE_RUNTIME_NAVMESH_BUILDING;ENABLE_SPRITERENDERER_FLIPPING;ENABLE_SPRITES;ENABLE_TERRAIN;ENABLE_RAKNET;ENABLE_UNET;ENABLE_LZMA;ENABLE_UNITYEVENTS;ENABLE_WEBCAM;ENABLE_WWW;ENABLE_CLOUD_SERVICES_COLLAB;ENABLE_CLOUD_SERVICES_ADS;ENABLE_CLOUD_HUB;ENABLE_CLOUD_PROJECT_ID;ENABLE_CLOUD_SERVICES_UNET;ENABLE_CLOUD_SERVICES_BUILD;ENABLE_CLOUD_LICENSE;ENABLE_EDITOR_METRICS;ENABLE_EDITOR_METRICS_CACHING;ENABLE_NATIVE_ARRAY;INCLUDE_DYNAMIC_GI;INCLUDE_GI;PLATFORM_SUPPORTS_MONO;RENDER_SOFTWARE_CURSOR;INCLUDE_PUBNUB;ENABLE_PLAYMODE_TESTS_RUNNER;ENABLE_SCRIPTING_NEW_CSHARP_COMPILER;ENABLE_VIDEO;UNITY_STANDALONE_WIN;UNITY_STANDALONE;ENABLE_SUBSTANCE;ENABLE_RUNTIME_GI;ENABLE_MOVIES;ENABLE_NETWORK;ENABLE_CRUNCH_TEXTURE_COMPRESSION;ENABLE_UNITYWEBREQUEST;ENABLE_CLOUD_SERVICES;ENABLE_CLOUD_SERVICES_ANALYTICS;ENABLE_CLOUD_SERVICES_PURCHASING;ENABLE_CLOUD_SERVICES_CRASH_REPORTING;ENABLE_EVENT_QUEUE;ENABLE_CLUSTERINPUT;ENABLE_VR;ENABLE_WEBSOCKET_HOST;ENABLE_MONO;NET_2_0_SUBSET;ENABLE_PROFILER;DEBUG;TRACE;UNITY_ASSERTIONS;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_WIN;ENABLE_NATIVE_ARRAY_CHECKS;UNITY_TEAM_LICENSE;ENABLE_VSTU;UNITY_PRO_LICENSE</DefineConstants>
43+
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
44+
</PropertyGroup>
45+
<ItemGroup>
46+
<Reference Include="mscorlib" />
47+
<Reference Include="System" />
48+
<Reference Include="System.XML" />
49+
<Reference Include="System.Core" />
50+
<Reference Include="Boo.Lang" />
51+
<Reference Include="UnityScript.Lang" />
52+
<Reference Include="System.Runtime.Serialization" />
53+
<Reference Include="System.Xml.Linq" />
54+
<Reference Include="UnityEngine">
55+
<HintPath>Library\UnityAssemblies\UnityEngine.dll</HintPath>
56+
</Reference>
57+
<Reference Include="UnityEditor">
58+
<HintPath>Library\UnityAssemblies\UnityEditor.dll</HintPath>
59+
</Reference>
60+
<Reference Include="UnityEditor.Advertisements">
61+
<HintPath>Library\UnityAssemblies\UnityEditor.Advertisements.dll</HintPath>
62+
</Reference>
63+
<Reference Include="UnityEngine.UI">
64+
<HintPath>Library\UnityAssemblies\UnityEngine.UI.dll</HintPath>
65+
</Reference>
66+
<Reference Include="UnityEditor.UI">
67+
<HintPath>Library\UnityAssemblies\UnityEditor.UI.dll</HintPath>
68+
</Reference>
69+
<Reference Include="UnityEngine.Networking">
70+
<HintPath>Library\UnityAssemblies\UnityEngine.Networking.dll</HintPath>
71+
</Reference>
72+
<Reference Include="UnityEditor.Networking">
73+
<HintPath>Library\UnityAssemblies\UnityEditor.Networking.dll</HintPath>
74+
</Reference>
75+
<Reference Include="UnityEditor.TestRunner">
76+
<HintPath>Library\UnityAssemblies\UnityEditor.TestRunner.dll</HintPath>
77+
</Reference>
78+
<Reference Include="UnityEngine.TestRunner">
79+
<HintPath>Library\UnityAssemblies\UnityEngine.TestRunner.dll</HintPath>
80+
</Reference>
81+
<Reference Include="nunit.framework">
82+
<HintPath>Library\UnityAssemblies\nunit.framework.dll</HintPath>
83+
</Reference>
84+
<Reference Include="UnityEditor.TreeEditor">
85+
<HintPath>Library\UnityAssemblies\UnityEditor.TreeEditor.dll</HintPath>
86+
</Reference>
87+
<Reference Include="UnityEngine.Analytics">
88+
<HintPath>Library\UnityAssemblies\UnityEngine.Analytics.dll</HintPath>
89+
</Reference>
90+
<Reference Include="UnityEditor.Analytics">
91+
<HintPath>Library\UnityAssemblies\UnityEditor.Analytics.dll</HintPath>
92+
</Reference>
93+
<Reference Include="UnityEditor.HoloLens">
94+
<HintPath>Library\UnityAssemblies\UnityEditor.HoloLens.dll</HintPath>
95+
</Reference>
96+
<Reference Include="UnityEngine.HoloLens">
97+
<HintPath>Library\UnityAssemblies\UnityEngine.HoloLens.dll</HintPath>
98+
</Reference>
99+
<Reference Include="UnityEditor.Purchasing">
100+
<HintPath>Library\UnityAssemblies\UnityEditor.Purchasing.dll</HintPath>
101+
</Reference>
102+
<Reference Include="UnityEditor.VR">
103+
<HintPath>Library\UnityAssemblies\UnityEditor.VR.dll</HintPath>
104+
</Reference>
105+
<Reference Include="UnityEngine.VR">
106+
<HintPath>Library\UnityAssemblies\UnityEngine.VR.dll</HintPath>
107+
</Reference>
108+
<Reference Include="UnityEditor.Graphs">
109+
<HintPath>Library\UnityAssemblies\UnityEditor.Graphs.dll</HintPath>
110+
</Reference>
111+
<Reference Include="UnityEditor.Android.Extensions">
112+
<HintPath>Library\UnityAssemblies\UnityEditor.Android.Extensions.dll</HintPath>
113+
</Reference>
114+
<Reference Include="UnityEditor.WindowsStandalone.Extensions">
115+
<HintPath>Library\UnityAssemblies\UnityEditor.WindowsStandalone.Extensions.dll</HintPath>
116+
</Reference>
117+
<Reference Include="SyntaxTree.VisualStudio.Unity.Bridge">
118+
<HintPath>Library\UnityAssemblies\SyntaxTree.VisualStudio.Unity.Bridge.dll</HintPath>
119+
</Reference>
120+
</ItemGroup>
121+
<ItemGroup>
122+
<ProjectReference Include="SapiClient.csproj">
123+
<Project>{CB7BCE2F-D69D-9272-E5F1-63655C3EE5B7}</Project>
124+
<Name>SapiClient</Name>
125+
</ProjectReference>
126+
</ItemGroup>
127+
<ItemGroup>
128+
<Compile Include="Assets\Editor\EnumLabelDrawer.cs" />
129+
<Compile Include="Assets\Editor\TagDrawer.cs" />
130+
<Compile Include="Assets\Editor\TagEnumGenarator.cs" />
131+
<Compile Include="Assets\Editor\TagObjFinderEditor.cs" />
132+
</ItemGroup>
133+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
134+
<Target Name="GenerateTargetFrameworkMonikerAttribute" />
135+
</Project>

SapiClient/SapiClient.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,12 @@
7878
</Reference>
7979
</ItemGroup>
8080
<ItemGroup>
81+
<Compile Include="Assets\ChatRobot\Cleverbot\CleverBot.cs" />
82+
<Compile Include="Assets\ChatRobot\Cleverbot\CleverBotManager.cs" />
8183
<Compile Include="Assets\ChatRobot\TuLing\TuLingChatRobot.cs" />
8284
<Compile Include="Assets\ChatRobot\TuLing\TuLingChatRobotManager.cs" />
85+
<Compile Include="Assets\ChatRobot\WebChatBot.cs" />
86+
<Compile Include="Assets\ChatRobot\WebChatBotManager.cs" />
8387
<Compile Include="Assets\Core\ByteInArg.cs" />
8488
<Compile Include="Assets\Core\SocketExtra.cs" />
8589
<Compile Include="Assets\Sapi\Speecher.cs" />

SapiClient/SapiClient.csproj.user

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup>
4+
<ProjectView>ProjectFiles</ProjectView>
5+
</PropertyGroup>
6+
</Project>

0 commit comments

Comments
 (0)