├── COCAuto
├── COCAuto.v12.suo
├── COCAuto
│ ├── Assets
│ │ ├── soliders
│ │ │ ├── 巨人.png
│ │ │ ├── 哥布林.png
│ │ │ ├── 弓箭手.png
│ │ │ ├── 治疗药水.png
│ │ │ ├── 炸弹人.png
│ │ │ ├── 狂暴药水.png
│ │ │ ├── 野蛮人.png
│ │ │ └── 野蛮人之王.png
│ │ ├── buttons
│ │ │ ├── 搜索下一个.png
│ │ │ └── 结束战斗.png
│ │ └── enemy_num
│ │ │ ├── enemy_cup.png
│ │ │ ├── enemy_Coin.png
│ │ │ ├── enemy_coin
│ │ │ ├── 0.bmp
│ │ │ ├── 1.bmp
│ │ │ ├── 2.bmp
│ │ │ ├── 3.bmp
│ │ │ ├── 4.bmp
│ │ │ ├── 5.bmp
│ │ │ ├── 6.bmp
│ │ │ ├── 7.bmp
│ │ │ ├── 8.bmp
│ │ │ └── 9.bmp
│ │ │ ├── enemy_redWater.png
│ │ │ └── enemy_blackWater.png
│ ├── bin
│ │ └── Debug
│ │ │ ├── COCAuto.exe
│ │ │ ├── COCAuto.pdb
│ │ │ ├── COCAuto.vshost.exe
│ │ │ └── COCAuto.vshost.exe.manifest
│ ├── obj
│ │ └── Debug
│ │ │ ├── COCAuto.exe
│ │ │ ├── COCAuto.pdb
│ │ │ ├── MainWindow.baml
│ │ │ ├── COCAuto.g.resources
│ │ │ ├── COCAuto.Resource1.resources
│ │ │ ├── TempPE
│ │ │ ├── Resource1.Designer.cs.dll
│ │ │ └── Properties.Resources.Designer.cs.dll
│ │ │ ├── COCAuto.csproj.GenerateResource.Cache
│ │ │ ├── COCAuto.Properties.Resources.resources
│ │ │ ├── DesignTimeResolveAssemblyReferences.cache
│ │ │ ├── COCAuto.csprojResolveAssemblyReference.cache
│ │ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ │ ├── COCAuto_MarkupCompile.cache
│ │ │ ├── COCAuto_MarkupCompile.i.cache
│ │ │ ├── COCAuto.csproj.FileListAbsolute.txt
│ │ │ ├── COCAuto_Content.g.i.cs
│ │ │ ├── App.g.cs
│ │ │ ├── App.g.i.cs
│ │ │ ├── MainWindow.g.cs
│ │ │ └── MainWindow.g.i.cs
│ ├── Properties
│ │ ├── Settings.settings
│ │ ├── Settings.Designer.cs
│ │ ├── AssemblyInfo.cs
│ │ ├── Resources.Designer.cs
│ │ └── Resources.resx
│ ├── App.xaml
│ ├── App.xaml.cs
│ ├── MainWindow.xaml
│ ├── Resource1.Designer.cs
│ ├── Resource1.resx
│ ├── COCAuto.csproj
│ └── MainWindow.xaml.cs
└── COCAuto.sln
└── LICENSE
/COCAuto/COCAuto.v12.suo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cnn404/BtnPress/HEAD/COCAuto/COCAuto.v12.suo
--------------------------------------------------------------------------------
/COCAuto/COCAuto/Assets/soliders/巨人.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cnn404/BtnPress/HEAD/COCAuto/COCAuto/Assets/soliders/巨人.png
--------------------------------------------------------------------------------
/COCAuto/COCAuto/bin/Debug/COCAuto.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cnn404/BtnPress/HEAD/COCAuto/COCAuto/bin/Debug/COCAuto.exe
--------------------------------------------------------------------------------
/COCAuto/COCAuto/bin/Debug/COCAuto.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cnn404/BtnPress/HEAD/COCAuto/COCAuto/bin/Debug/COCAuto.pdb
--------------------------------------------------------------------------------
/COCAuto/COCAuto/obj/Debug/COCAuto.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cnn404/BtnPress/HEAD/COCAuto/COCAuto/obj/Debug/COCAuto.exe
--------------------------------------------------------------------------------
/COCAuto/COCAuto/obj/Debug/COCAuto.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cnn404/BtnPress/HEAD/COCAuto/COCAuto/obj/Debug/COCAuto.pdb
--------------------------------------------------------------------------------
/COCAuto/COCAuto/Assets/buttons/搜索下一个.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cnn404/BtnPress/HEAD/COCAuto/COCAuto/Assets/buttons/搜索下一个.png
--------------------------------------------------------------------------------
/COCAuto/COCAuto/Assets/buttons/结束战斗.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cnn404/BtnPress/HEAD/COCAuto/COCAuto/Assets/buttons/结束战斗.png
--------------------------------------------------------------------------------
/COCAuto/COCAuto/Assets/soliders/哥布林.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cnn404/BtnPress/HEAD/COCAuto/COCAuto/Assets/soliders/哥布林.png
--------------------------------------------------------------------------------
/COCAuto/COCAuto/Assets/soliders/弓箭手.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cnn404/BtnPress/HEAD/COCAuto/COCAuto/Assets/soliders/弓箭手.png
--------------------------------------------------------------------------------
/COCAuto/COCAuto/Assets/soliders/治疗药水.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cnn404/BtnPress/HEAD/COCAuto/COCAuto/Assets/soliders/治疗药水.png
--------------------------------------------------------------------------------
/COCAuto/COCAuto/Assets/soliders/炸弹人.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cnn404/BtnPress/HEAD/COCAuto/COCAuto/Assets/soliders/炸弹人.png
--------------------------------------------------------------------------------
/COCAuto/COCAuto/Assets/soliders/狂暴药水.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cnn404/BtnPress/HEAD/COCAuto/COCAuto/Assets/soliders/狂暴药水.png
--------------------------------------------------------------------------------
/COCAuto/COCAuto/Assets/soliders/野蛮人.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cnn404/BtnPress/HEAD/COCAuto/COCAuto/Assets/soliders/野蛮人.png
--------------------------------------------------------------------------------
/COCAuto/COCAuto/Assets/soliders/野蛮人之王.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cnn404/BtnPress/HEAD/COCAuto/COCAuto/Assets/soliders/野蛮人之王.png
--------------------------------------------------------------------------------
/COCAuto/COCAuto/obj/Debug/MainWindow.baml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cnn404/BtnPress/HEAD/COCAuto/COCAuto/obj/Debug/MainWindow.baml
--------------------------------------------------------------------------------
/COCAuto/COCAuto/Assets/enemy_num/enemy_cup.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cnn404/BtnPress/HEAD/COCAuto/COCAuto/Assets/enemy_num/enemy_cup.png
--------------------------------------------------------------------------------
/COCAuto/COCAuto/bin/Debug/COCAuto.vshost.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cnn404/BtnPress/HEAD/COCAuto/COCAuto/bin/Debug/COCAuto.vshost.exe
--------------------------------------------------------------------------------
/COCAuto/COCAuto/obj/Debug/COCAuto.g.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cnn404/BtnPress/HEAD/COCAuto/COCAuto/obj/Debug/COCAuto.g.resources
--------------------------------------------------------------------------------
/COCAuto/COCAuto/Assets/enemy_num/enemy_Coin.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cnn404/BtnPress/HEAD/COCAuto/COCAuto/Assets/enemy_num/enemy_Coin.png
--------------------------------------------------------------------------------
/COCAuto/COCAuto/Assets/enemy_num/enemy_coin/0.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cnn404/BtnPress/HEAD/COCAuto/COCAuto/Assets/enemy_num/enemy_coin/0.bmp
--------------------------------------------------------------------------------
/COCAuto/COCAuto/Assets/enemy_num/enemy_coin/1.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cnn404/BtnPress/HEAD/COCAuto/COCAuto/Assets/enemy_num/enemy_coin/1.bmp
--------------------------------------------------------------------------------
/COCAuto/COCAuto/Assets/enemy_num/enemy_coin/2.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cnn404/BtnPress/HEAD/COCAuto/COCAuto/Assets/enemy_num/enemy_coin/2.bmp
--------------------------------------------------------------------------------
/COCAuto/COCAuto/Assets/enemy_num/enemy_coin/3.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cnn404/BtnPress/HEAD/COCAuto/COCAuto/Assets/enemy_num/enemy_coin/3.bmp
--------------------------------------------------------------------------------
/COCAuto/COCAuto/Assets/enemy_num/enemy_coin/4.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cnn404/BtnPress/HEAD/COCAuto/COCAuto/Assets/enemy_num/enemy_coin/4.bmp
--------------------------------------------------------------------------------
/COCAuto/COCAuto/Assets/enemy_num/enemy_coin/5.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cnn404/BtnPress/HEAD/COCAuto/COCAuto/Assets/enemy_num/enemy_coin/5.bmp
--------------------------------------------------------------------------------
/COCAuto/COCAuto/Assets/enemy_num/enemy_coin/6.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cnn404/BtnPress/HEAD/COCAuto/COCAuto/Assets/enemy_num/enemy_coin/6.bmp
--------------------------------------------------------------------------------
/COCAuto/COCAuto/Assets/enemy_num/enemy_coin/7.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cnn404/BtnPress/HEAD/COCAuto/COCAuto/Assets/enemy_num/enemy_coin/7.bmp
--------------------------------------------------------------------------------
/COCAuto/COCAuto/Assets/enemy_num/enemy_coin/8.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cnn404/BtnPress/HEAD/COCAuto/COCAuto/Assets/enemy_num/enemy_coin/8.bmp
--------------------------------------------------------------------------------
/COCAuto/COCAuto/Assets/enemy_num/enemy_coin/9.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cnn404/BtnPress/HEAD/COCAuto/COCAuto/Assets/enemy_num/enemy_coin/9.bmp
--------------------------------------------------------------------------------
/COCAuto/COCAuto/Assets/enemy_num/enemy_redWater.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cnn404/BtnPress/HEAD/COCAuto/COCAuto/Assets/enemy_num/enemy_redWater.png
--------------------------------------------------------------------------------
/COCAuto/COCAuto/Assets/enemy_num/enemy_blackWater.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cnn404/BtnPress/HEAD/COCAuto/COCAuto/Assets/enemy_num/enemy_blackWater.png
--------------------------------------------------------------------------------
/COCAuto/COCAuto/obj/Debug/COCAuto.Resource1.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cnn404/BtnPress/HEAD/COCAuto/COCAuto/obj/Debug/COCAuto.Resource1.resources
--------------------------------------------------------------------------------
/COCAuto/COCAuto/obj/Debug/TempPE/Resource1.Designer.cs.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cnn404/BtnPress/HEAD/COCAuto/COCAuto/obj/Debug/TempPE/Resource1.Designer.cs.dll
--------------------------------------------------------------------------------
/COCAuto/COCAuto/obj/Debug/COCAuto.csproj.GenerateResource.Cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cnn404/BtnPress/HEAD/COCAuto/COCAuto/obj/Debug/COCAuto.csproj.GenerateResource.Cache
--------------------------------------------------------------------------------
/COCAuto/COCAuto/obj/Debug/COCAuto.Properties.Resources.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cnn404/BtnPress/HEAD/COCAuto/COCAuto/obj/Debug/COCAuto.Properties.Resources.resources
--------------------------------------------------------------------------------
/COCAuto/COCAuto/obj/Debug/DesignTimeResolveAssemblyReferences.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cnn404/BtnPress/HEAD/COCAuto/COCAuto/obj/Debug/DesignTimeResolveAssemblyReferences.cache
--------------------------------------------------------------------------------
/COCAuto/COCAuto/obj/Debug/COCAuto.csprojResolveAssemblyReference.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cnn404/BtnPress/HEAD/COCAuto/COCAuto/obj/Debug/COCAuto.csprojResolveAssemblyReference.cache
--------------------------------------------------------------------------------
/COCAuto/COCAuto/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cnn404/BtnPress/HEAD/COCAuto/COCAuto/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll
--------------------------------------------------------------------------------
/COCAuto/COCAuto/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cnn404/BtnPress/HEAD/COCAuto/COCAuto/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
--------------------------------------------------------------------------------
/COCAuto/COCAuto/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/COCAuto/COCAuto/App.xaml:
--------------------------------------------------------------------------------
1 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/COCAuto/COCAuto/App.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Configuration;
4 | using System.Data;
5 | using System.Linq;
6 | using System.Windows;
7 |
8 | namespace COCAuto
9 | {
10 | ///
11 | /// App.xaml 的交互逻辑
12 | ///
13 | public partial class App : Application
14 | {
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/COCAuto/COCAuto/obj/Debug/COCAuto_MarkupCompile.cache:
--------------------------------------------------------------------------------
1 | COCAuto
2 |
3 |
4 | winexe
5 | C#
6 | .cs
7 | C:\Users\JimmyBright\Desktop\COCAuto\COCAuto\obj\Debug\
8 | COCAuto
9 | none
10 | false
11 | DEBUG;TRACE
12 | C:\Users\JimmyBright\Desktop\COCAuto\COCAuto\App.xaml
13 | 11151548125
14 |
15 | 6153324999
16 | 112034733353
17 | MainWindow.xaml;
18 |
19 | False
20 |
21 |
--------------------------------------------------------------------------------
/COCAuto/COCAuto/obj/Debug/COCAuto_MarkupCompile.i.cache:
--------------------------------------------------------------------------------
1 | COCAuto
2 |
3 |
4 | winexe
5 | C#
6 | .cs
7 | C:\Users\JimmyBright\Desktop\COCAuto\COCAuto\obj\Debug\
8 | COCAuto
9 | none
10 | false
11 | DEBUG;TRACE
12 | C:\Users\JimmyBright\Desktop\COCAuto\COCAuto\App.xaml
13 | 11151548125
14 |
15 | 6153324999
16 | 112034733353
17 | MainWindow.xaml;
18 |
19 | False
20 |
21 |
--------------------------------------------------------------------------------
/COCAuto/COCAuto/MainWindow.xaml:
--------------------------------------------------------------------------------
1 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/COCAuto/COCAuto/bin/Debug/COCAuto.vshost.exe.manifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/COCAuto/COCAuto.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 2013
4 | VisualStudioVersion = 12.0.21005.1
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "COCAuto", "COCAuto\COCAuto.csproj", "{0FC413A9-104D-4921-BDF5-4C3DE2CAA96E}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {0FC413A9-104D-4921-BDF5-4C3DE2CAA96E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {0FC413A9-104D-4921-BDF5-4C3DE2CAA96E}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {0FC413A9-104D-4921-BDF5-4C3DE2CAA96E}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {0FC413A9-104D-4921-BDF5-4C3DE2CAA96E}.Release|Any CPU.Build.0 = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | EndGlobal
23 |
--------------------------------------------------------------------------------
/COCAuto/COCAuto/obj/Debug/COCAuto.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
1 | C:\Users\JimmyBright\Desktop\COCAuto\COCAuto\bin\Debug\COCAuto.exe
2 | C:\Users\JimmyBright\Desktop\COCAuto\COCAuto\bin\Debug\COCAuto.pdb
3 | C:\Users\JimmyBright\Desktop\COCAuto\COCAuto\obj\Debug\COCAuto.csprojResolveAssemblyReference.cache
4 | C:\Users\JimmyBright\Desktop\COCAuto\COCAuto\obj\Debug\MainWindow.baml
5 | C:\Users\JimmyBright\Desktop\COCAuto\COCAuto\obj\Debug\MainWindow.g.cs
6 | C:\Users\JimmyBright\Desktop\COCAuto\COCAuto\obj\Debug\App.g.cs
7 | C:\Users\JimmyBright\Desktop\COCAuto\COCAuto\obj\Debug\COCAuto_MarkupCompile.cache
8 | C:\Users\JimmyBright\Desktop\COCAuto\COCAuto\obj\Debug\COCAuto.g.resources
9 | C:\Users\JimmyBright\Desktop\COCAuto\COCAuto\obj\Debug\COCAuto.Properties.Resources.resources
10 | C:\Users\JimmyBright\Desktop\COCAuto\COCAuto\obj\Debug\COCAuto.csproj.GenerateResource.Cache
11 | C:\Users\JimmyBright\Desktop\COCAuto\COCAuto\obj\Debug\COCAuto.exe
12 | C:\Users\JimmyBright\Desktop\COCAuto\COCAuto\obj\Debug\COCAuto.pdb
13 | C:\Users\JimmyBright\Desktop\COCAuto\COCAuto\obj\Debug\COCAuto.Resource1.resources
14 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2018
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/COCAuto/COCAuto/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.18444
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace COCAuto.Properties
12 | {
13 |
14 |
15 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
16 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
17 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
18 | {
19 |
20 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
21 |
22 | public static Settings Default
23 | {
24 | get
25 | {
26 | return defaultInstance;
27 | }
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/COCAuto/COCAuto/obj/Debug/COCAuto_Content.g.i.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // 此代码由工具生成。
4 | // 运行时版本:4.0.30319.18444
5 | //
6 | // 对此文件的更改可能会导致不正确的行为,并且如果
7 | // 重新生成代码,这些更改将会丢失。
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | [assembly: System.Windows.Resources.AssemblyAssociatedContentFileAttribute("assets/enemy_num/enemy_coin/0.bmp")]
12 | [assembly: System.Windows.Resources.AssemblyAssociatedContentFileAttribute("assets/enemy_num/enemy_coin/1.bmp")]
13 | [assembly: System.Windows.Resources.AssemblyAssociatedContentFileAttribute("assets/enemy_num/enemy_coin/2.bmp")]
14 | [assembly: System.Windows.Resources.AssemblyAssociatedContentFileAttribute("assets/enemy_num/enemy_coin/3.bmp")]
15 | [assembly: System.Windows.Resources.AssemblyAssociatedContentFileAttribute("assets/enemy_num/enemy_coin/4.bmp")]
16 | [assembly: System.Windows.Resources.AssemblyAssociatedContentFileAttribute("assets/enemy_num/enemy_coin/5.bmp")]
17 | [assembly: System.Windows.Resources.AssemblyAssociatedContentFileAttribute("assets/enemy_num/enemy_coin/6.bmp")]
18 | [assembly: System.Windows.Resources.AssemblyAssociatedContentFileAttribute("assets/enemy_num/enemy_coin/7.bmp")]
19 | [assembly: System.Windows.Resources.AssemblyAssociatedContentFileAttribute("assets/enemy_num/enemy_coin/8.bmp")]
20 | [assembly: System.Windows.Resources.AssemblyAssociatedContentFileAttribute("assets/enemy_num/enemy_coin/9.bmp")]
21 |
22 |
23 |
--------------------------------------------------------------------------------
/COCAuto/COCAuto/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Resources;
3 | using System.Runtime.CompilerServices;
4 | using System.Runtime.InteropServices;
5 | using System.Windows;
6 |
7 | // 有关程序集的常规信息通过以下
8 | // 特性集控制。更改这些特性值可修改
9 | // 与程序集关联的信息。
10 | [assembly: AssemblyTitle("COCAuto")]
11 | [assembly: AssemblyDescription("")]
12 | [assembly: AssemblyConfiguration("")]
13 | [assembly: AssemblyCompany("")]
14 | [assembly: AssemblyProduct("COCAuto")]
15 | [assembly: AssemblyCopyright("Copyright © 2014")]
16 | [assembly: AssemblyTrademark("")]
17 | [assembly: AssemblyCulture("")]
18 |
19 | // 将 ComVisible 设置为 false 使此程序集中的类型
20 | // 对 COM 组件不可见。 如果需要从 COM 访问此程序集中的类型,
21 | // 则将该类型上的 ComVisible 特性设置为 true。
22 | [assembly: ComVisible(false)]
23 |
24 | //若要开始生成可本地化的应用程序,请在
25 | // 中的 .csproj 文件中
26 | //设置 CultureYouAreCodingWith。 例如,如果您在源文件中
27 | //使用的是美国英语,请将 设置为 en-US。 然后取消
28 | //对以下 NeutralResourceLanguage 特性的注释。 更新
29 | //以下行中的“en-US”以匹配项目文件中的 UICulture 设置。
30 |
31 | //[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
32 |
33 |
34 | [assembly: ThemeInfo(
35 | ResourceDictionaryLocation.None, //主题特定资源词典所处位置
36 | //(在页面或应用程序资源词典中
37 | // 未找到某个资源的情况下使用)
38 | ResourceDictionaryLocation.SourceAssembly //常规资源词典所处位置
39 | //(在页面、应用程序或任何主题特定资源词典中
40 | // 未找到某个资源的情况下使用)
41 | )]
42 |
43 |
44 | // 程序集的版本信息由下面四个值组成:
45 | //
46 | // 主版本
47 | // 次版本
48 | // 生成号
49 | // 修订号
50 | //
51 | // 可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值,
52 | // 方法是按如下所示使用“*”:
53 | // [assembly: AssemblyVersion("1.0.*")]
54 | [assembly: AssemblyVersion("1.0.0.0")]
55 | [assembly: AssemblyFileVersion("1.0.0.0")]
56 |
--------------------------------------------------------------------------------
/COCAuto/COCAuto/obj/Debug/App.g.cs:
--------------------------------------------------------------------------------
1 | #pragma checksum "..\..\App.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "9EDDD3B8EA4B75B7348DE684ADBC85F9"
2 | //------------------------------------------------------------------------------
3 | //
4 | // 此代码由工具生成。
5 | // 运行时版本:4.0.30319.18444
6 | //
7 | // 对此文件的更改可能会导致不正确的行为,并且如果
8 | // 重新生成代码,这些更改将会丢失。
9 | //
10 | //------------------------------------------------------------------------------
11 |
12 | using System;
13 | using System.Diagnostics;
14 | using System.Windows;
15 | using System.Windows.Automation;
16 | using System.Windows.Controls;
17 | using System.Windows.Controls.Primitives;
18 | using System.Windows.Data;
19 | using System.Windows.Documents;
20 | using System.Windows.Ink;
21 | using System.Windows.Input;
22 | using System.Windows.Markup;
23 | using System.Windows.Media;
24 | using System.Windows.Media.Animation;
25 | using System.Windows.Media.Effects;
26 | using System.Windows.Media.Imaging;
27 | using System.Windows.Media.Media3D;
28 | using System.Windows.Media.TextFormatting;
29 | using System.Windows.Navigation;
30 | using System.Windows.Shapes;
31 |
32 |
33 | namespace COCAuto {
34 |
35 |
36 | ///
37 | /// App
38 | ///
39 | public partial class App : System.Windows.Application {
40 |
41 | ///
42 | /// InitializeComponent
43 | ///
44 | [System.Diagnostics.DebuggerNonUserCodeAttribute()]
45 | [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
46 | public void InitializeComponent() {
47 |
48 | #line 4 "..\..\App.xaml"
49 | this.StartupUri = new System.Uri("MainWindow.xaml", System.UriKind.Relative);
50 |
51 | #line default
52 | #line hidden
53 | }
54 |
55 | ///
56 | /// Application Entry Point.
57 | ///
58 | [System.STAThreadAttribute()]
59 | [System.Diagnostics.DebuggerNonUserCodeAttribute()]
60 | [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
61 | public static void Main() {
62 | COCAuto.App app = new COCAuto.App();
63 | app.InitializeComponent();
64 | app.Run();
65 | }
66 | }
67 | }
68 |
69 |
--------------------------------------------------------------------------------
/COCAuto/COCAuto/obj/Debug/App.g.i.cs:
--------------------------------------------------------------------------------
1 | #pragma checksum "..\..\App.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "9EDDD3B8EA4B75B7348DE684ADBC85F9"
2 | //------------------------------------------------------------------------------
3 | //
4 | // 此代码由工具生成。
5 | // 运行时版本:4.0.30319.18444
6 | //
7 | // 对此文件的更改可能会导致不正确的行为,并且如果
8 | // 重新生成代码,这些更改将会丢失。
9 | //
10 | //------------------------------------------------------------------------------
11 |
12 | using System;
13 | using System.Diagnostics;
14 | using System.Windows;
15 | using System.Windows.Automation;
16 | using System.Windows.Controls;
17 | using System.Windows.Controls.Primitives;
18 | using System.Windows.Data;
19 | using System.Windows.Documents;
20 | using System.Windows.Ink;
21 | using System.Windows.Input;
22 | using System.Windows.Markup;
23 | using System.Windows.Media;
24 | using System.Windows.Media.Animation;
25 | using System.Windows.Media.Effects;
26 | using System.Windows.Media.Imaging;
27 | using System.Windows.Media.Media3D;
28 | using System.Windows.Media.TextFormatting;
29 | using System.Windows.Navigation;
30 | using System.Windows.Shapes;
31 |
32 |
33 | namespace COCAuto {
34 |
35 |
36 | ///
37 | /// App
38 | ///
39 | public partial class App : System.Windows.Application {
40 |
41 | ///
42 | /// InitializeComponent
43 | ///
44 | [System.Diagnostics.DebuggerNonUserCodeAttribute()]
45 | [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
46 | public void InitializeComponent() {
47 |
48 | #line 4 "..\..\App.xaml"
49 | this.StartupUri = new System.Uri("MainWindow.xaml", System.UriKind.Relative);
50 |
51 | #line default
52 | #line hidden
53 | }
54 |
55 | ///
56 | /// Application Entry Point.
57 | ///
58 | [System.STAThreadAttribute()]
59 | [System.Diagnostics.DebuggerNonUserCodeAttribute()]
60 | [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
61 | public static void Main() {
62 | COCAuto.App app = new COCAuto.App();
63 | app.InitializeComponent();
64 | app.Run();
65 | }
66 | }
67 | }
68 |
69 |
--------------------------------------------------------------------------------
/COCAuto/COCAuto/Resource1.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // 此代码由工具生成。
4 | // 运行时版本:4.0.30319.18444
5 | //
6 | // 对此文件的更改可能会导致不正确的行为,并且如果
7 | // 重新生成代码,这些更改将会丢失。
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace COCAuto {
12 | using System;
13 |
14 |
15 | ///
16 | /// 一个强类型的资源类,用于查找本地化的字符串等。
17 | ///
18 | // 此类是由 StronglyTypedResourceBuilder
19 | // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
20 | // 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
21 | // (以 /str 作为命令选项),或重新生成 VS 项目。
22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
25 | internal class Resource1 {
26 |
27 | private static global::System.Resources.ResourceManager resourceMan;
28 |
29 | private static global::System.Globalization.CultureInfo resourceCulture;
30 |
31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
32 | internal Resource1() {
33 | }
34 |
35 | ///
36 | /// 返回此类使用的缓存的 ResourceManager 实例。
37 | ///
38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
39 | internal static global::System.Resources.ResourceManager ResourceManager {
40 | get {
41 | if (object.ReferenceEquals(resourceMan, null)) {
42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("COCAuto.Resource1", typeof(Resource1).Assembly);
43 | resourceMan = temp;
44 | }
45 | return resourceMan;
46 | }
47 | }
48 |
49 | ///
50 | /// 使用此强类型资源类,为所有资源查找
51 | /// 重写当前线程的 CurrentUICulture 属性。
52 | ///
53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
54 | internal static global::System.Globalization.CultureInfo Culture {
55 | get {
56 | return resourceCulture;
57 | }
58 | set {
59 | resourceCulture = value;
60 | }
61 | }
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/COCAuto/COCAuto/Properties/Resources.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // 此代码由工具生成。
4 | // 运行时版本: 4.0.30319.18444
5 | //
6 | // 对此文件的更改可能会导致不正确的行为,并且如果
7 | // 重新生成代码,这些更改将丢失。
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace COCAuto.Properties
12 | {
13 |
14 |
15 | ///
16 | /// 一个强类型的资源类,用于查找本地化的字符串等。
17 | ///
18 | // 此类是由 StronglyTypedResourceBuilder
19 | // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
20 | // 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
21 | // (以 /str 作为命令选项),或重新生成 VS 项目。
22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
25 | internal class Resources
26 | {
27 |
28 | private static global::System.Resources.ResourceManager resourceMan;
29 |
30 | private static global::System.Globalization.CultureInfo resourceCulture;
31 |
32 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
33 | internal Resources()
34 | {
35 | }
36 |
37 | ///
38 | /// 返回此类使用的、缓存的 ResourceManager 实例。
39 | ///
40 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
41 | internal static global::System.Resources.ResourceManager ResourceManager
42 | {
43 | get
44 | {
45 | if ((resourceMan == null))
46 | {
47 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("COCAuto.Properties.Resources", typeof(Resources).Assembly);
48 | resourceMan = temp;
49 | }
50 | return resourceMan;
51 | }
52 | }
53 |
54 | ///
55 | /// 为所有资源查找重写当前线程的 CurrentUICulture 属性,
56 | /// 方法是使用此强类型资源类。
57 | ///
58 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
59 | internal static global::System.Globalization.CultureInfo Culture
60 | {
61 | get
62 | {
63 | return resourceCulture;
64 | }
65 | set
66 | {
67 | resourceCulture = value;
68 | }
69 | }
70 | }
71 | }
72 |
--------------------------------------------------------------------------------
/COCAuto/COCAuto/obj/Debug/MainWindow.g.cs:
--------------------------------------------------------------------------------
1 | #pragma checksum "..\..\MainWindow.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "BEB9360083874279EB1AA3EF2240B3D7"
2 | //------------------------------------------------------------------------------
3 | //
4 | // 此代码由工具生成。
5 | // 运行时版本:4.0.30319.18444
6 | //
7 | // 对此文件的更改可能会导致不正确的行为,并且如果
8 | // 重新生成代码,这些更改将会丢失。
9 | //
10 | //------------------------------------------------------------------------------
11 |
12 | using System;
13 | using System.Diagnostics;
14 | using System.Windows;
15 | using System.Windows.Automation;
16 | using System.Windows.Controls;
17 | using System.Windows.Controls.Primitives;
18 | using System.Windows.Data;
19 | using System.Windows.Documents;
20 | using System.Windows.Ink;
21 | using System.Windows.Input;
22 | using System.Windows.Markup;
23 | using System.Windows.Media;
24 | using System.Windows.Media.Animation;
25 | using System.Windows.Media.Effects;
26 | using System.Windows.Media.Imaging;
27 | using System.Windows.Media.Media3D;
28 | using System.Windows.Media.TextFormatting;
29 | using System.Windows.Navigation;
30 | using System.Windows.Shapes;
31 |
32 |
33 | namespace COCAuto {
34 |
35 |
36 | ///
37 | /// MainWindow
38 | ///
39 | public partial class MainWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
40 |
41 | private bool _contentLoaded;
42 |
43 | ///
44 | /// InitializeComponent
45 | ///
46 | [System.Diagnostics.DebuggerNonUserCodeAttribute()]
47 | [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
48 | public void InitializeComponent() {
49 | if (_contentLoaded) {
50 | return;
51 | }
52 | _contentLoaded = true;
53 | System.Uri resourceLocater = new System.Uri("/COCAuto;component/mainwindow.xaml", System.UriKind.Relative);
54 |
55 | #line 1 "..\..\MainWindow.xaml"
56 | System.Windows.Application.LoadComponent(this, resourceLocater);
57 |
58 | #line default
59 | #line hidden
60 | }
61 |
62 | [System.Diagnostics.DebuggerNonUserCodeAttribute()]
63 | [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
64 | [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
65 | [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
66 | [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
67 | [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
68 | void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
69 | switch (connectionId)
70 | {
71 | case 1:
72 |
73 | #line 6 "..\..\MainWindow.xaml"
74 | ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);
75 |
76 | #line default
77 | #line hidden
78 | return;
79 | }
80 | this._contentLoaded = true;
81 | }
82 | }
83 | }
84 |
85 |
--------------------------------------------------------------------------------
/COCAuto/COCAuto/obj/Debug/MainWindow.g.i.cs:
--------------------------------------------------------------------------------
1 | #pragma checksum "..\..\MainWindow.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "BEB9360083874279EB1AA3EF2240B3D7"
2 | //------------------------------------------------------------------------------
3 | //
4 | // 此代码由工具生成。
5 | // 运行时版本:4.0.30319.18444
6 | //
7 | // 对此文件的更改可能会导致不正确的行为,并且如果
8 | // 重新生成代码,这些更改将会丢失。
9 | //
10 | //------------------------------------------------------------------------------
11 |
12 | using System;
13 | using System.Diagnostics;
14 | using System.Windows;
15 | using System.Windows.Automation;
16 | using System.Windows.Controls;
17 | using System.Windows.Controls.Primitives;
18 | using System.Windows.Data;
19 | using System.Windows.Documents;
20 | using System.Windows.Ink;
21 | using System.Windows.Input;
22 | using System.Windows.Markup;
23 | using System.Windows.Media;
24 | using System.Windows.Media.Animation;
25 | using System.Windows.Media.Effects;
26 | using System.Windows.Media.Imaging;
27 | using System.Windows.Media.Media3D;
28 | using System.Windows.Media.TextFormatting;
29 | using System.Windows.Navigation;
30 | using System.Windows.Shapes;
31 |
32 |
33 | namespace COCAuto {
34 |
35 |
36 | ///
37 | /// MainWindow
38 | ///
39 | public partial class MainWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
40 |
41 | private bool _contentLoaded;
42 |
43 | ///
44 | /// InitializeComponent
45 | ///
46 | [System.Diagnostics.DebuggerNonUserCodeAttribute()]
47 | [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
48 | public void InitializeComponent() {
49 | if (_contentLoaded) {
50 | return;
51 | }
52 | _contentLoaded = true;
53 | System.Uri resourceLocater = new System.Uri("/COCAuto;component/mainwindow.xaml", System.UriKind.Relative);
54 |
55 | #line 1 "..\..\MainWindow.xaml"
56 | System.Windows.Application.LoadComponent(this, resourceLocater);
57 |
58 | #line default
59 | #line hidden
60 | }
61 |
62 | [System.Diagnostics.DebuggerNonUserCodeAttribute()]
63 | [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
64 | [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
65 | [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
66 | [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
67 | [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
68 | void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
69 | switch (connectionId)
70 | {
71 | case 1:
72 |
73 | #line 6 "..\..\MainWindow.xaml"
74 | ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);
75 |
76 | #line default
77 | #line hidden
78 | return;
79 | }
80 | this._contentLoaded = true;
81 | }
82 | }
83 | }
84 |
85 |
--------------------------------------------------------------------------------
/COCAuto/COCAuto/Resource1.resx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 | text/microsoft-resx
91 |
92 |
93 | 1.3
94 |
95 |
96 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
97 |
98 |
99 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
100 |
101 |
--------------------------------------------------------------------------------
/COCAuto/COCAuto/Properties/Resources.resx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 | text/microsoft-resx
107 |
108 |
109 | 2.0
110 |
111 |
112 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
113 |
114 |
115 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
116 |
117 |
--------------------------------------------------------------------------------
/COCAuto/COCAuto/COCAuto.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {0FC413A9-104D-4921-BDF5-4C3DE2CAA96E}
8 | WinExe
9 | Properties
10 | COCAuto
11 | COCAuto
12 | v3.5
13 | 512
14 | {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
15 | 4
16 |
17 |
18 | x86
19 | true
20 | full
21 | false
22 | bin\Debug\
23 | DEBUG;TRACE
24 | prompt
25 | 4
26 |
27 |
28 | AnyCPU
29 | pdbonly
30 | true
31 | bin\Release\
32 | TRACE
33 | prompt
34 | 4
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 | MSBuild:Compile
51 | Designer
52 |
53 |
54 | True
55 | True
56 | Resource1.resx
57 |
58 |
59 | MSBuild:Compile
60 | Designer
61 |
62 |
63 | App.xaml
64 | Code
65 |
66 |
67 | MainWindow.xaml
68 | Code
69 |
70 |
71 |
72 |
73 | Code
74 |
75 |
76 | True
77 | True
78 | Resources.resx
79 |
80 |
81 | True
82 | Settings.settings
83 | True
84 |
85 |
86 | ResXFileCodeGenerator
87 | Resources.Designer.cs
88 |
89 |
90 | ResXFileCodeGenerator
91 | Resource1.Designer.cs
92 |
93 |
94 | SettingsSingleFileGenerator
95 | Settings.Designer.cs
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
137 |
--------------------------------------------------------------------------------
/COCAuto/COCAuto/MainWindow.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Drawing;
4 | using System.Drawing.Imaging;
5 | using System.Linq;
6 | using System.Runtime.InteropServices;
7 | using System.Text;
8 | using System.Windows;
9 | using System.Windows.Controls;
10 | using System.Windows.Data;
11 | using System.Windows.Documents;
12 | using System.Windows.Input;
13 | using System.Windows.Media;
14 | using System.Windows.Media.Imaging;
15 | using System.Windows.Navigation;
16 | using System.Windows.Shapes;
17 |
18 | namespace COCAuto
19 | {
20 | ///
21 | /// MainWindow.xaml 的交互逻辑
22 | ///
23 | public partial class MainWindow : Window
24 | {
25 | public MainWindow()
26 | {
27 | InitializeComponent();
28 | }
29 |
30 | private void Button_Click(object sender, RoutedEventArgs e)
31 | {
32 | //string subPic = @"..\..\Assets\enemy_num\3.png";
33 | //string parPic = @"C:\Users\JimmyBright\Desktop\搜鱼.png";
34 |
35 |
36 | //string subPic = @"C:\Users\JimmyBright\Desktop\2.bmp";
37 | //string parPic = @"C:\Users\JimmyBright\Desktop\22_black.bmp";
38 | //System.Drawing.Rectangle rect = new System.Drawing.Rectangle(40, 85, 165, 20);
39 | ////rect = System.Drawing.Rectangle.Empty;
40 | //var point = FindText(subPic, parPic, rect, 0, 0.8, true);
41 |
42 |
43 | //var point1 = FindColor(parPic, "#412a50");
44 | var dic = new Dictionary();
45 | var rec = new System.Drawing.Rectangle(40, 85, 165, 20);
46 | //var rec = new System.Drawing.Rectangle(407, 259, 121, 27);
47 |
48 | var myPic = @"C:\Users\JimmyBright\Desktop\228234.bmp";
49 | for (int i = 0; i < 10; i++)
50 | {
51 | dic.Add(i, string.Format(@"..\..\Assets\enemy_num\enemy_coin\{0}.bmp", i));
52 | }
53 | var num = FindNumbers(dic, myPic, rec, 10, 0.85);
54 | var tt = FindText(dic[0], myPic, rec, 10, 0.65, true);
55 | }
56 | struct NumBody
57 | {
58 | public int num;//数字
59 | public int matchNum;//匹配的个数
60 | public int matchSum;
61 | public double matchRate;//匹配度
62 | public System.Drawing.Point point;
63 | public List bodyCollectionPoint;//该数字所有像素在大图中的坐标
64 | }
65 | #region 找图
66 |
67 | ///
68 | /// 查找图片,不能镂空
69 | ///
70 | ///
71 | ///
72 | /// 如果为empty,则默认查找整个图像
73 | /// 容错,单个色值范围内视为正确0~255
74 | /// 图片匹配度,默认90%
75 | /// 是否查找所有相似的图片
76 | /// 返回查找到的图片的中心点坐标
77 | List FindPicture(string subPic, string parPic, System.Drawing.Rectangle searchRect, byte errorRange, double matchRate = 0.9, bool isFindAll = false)
78 | {
79 | List ListPoint = new List();
80 | var subBitmap = new Bitmap(subPic);
81 | var parBitmap = new Bitmap(parPic);
82 | int subWidth = subBitmap.Width;
83 | int subHeight = subBitmap.Height;
84 | int parWidth = parBitmap.Width;
85 | int parHeight = parBitmap.Height;
86 | if (searchRect.IsEmpty)
87 | {
88 | searchRect = new System.Drawing.Rectangle(0, 0, parBitmap.Width, parBitmap.Height);
89 | }
90 |
91 | var searchLeftTop = searchRect.Location;
92 | var searchSize = searchRect.Size;
93 | System.Drawing.Color startPixelColor = subBitmap.GetPixel(0, 0);
94 | var subData = subBitmap.LockBits(new System.Drawing.Rectangle(0, 0, subBitmap.Width, subBitmap.Height), ImageLockMode.ReadOnly, System.Drawing.Imaging.PixelFormat.Format32bppArgb);
95 | var parData = parBitmap.LockBits(new System.Drawing.Rectangle(0, 0, parBitmap.Width, parBitmap.Height), ImageLockMode.ReadOnly, System.Drawing.Imaging.PixelFormat.Format32bppArgb);
96 | var byteArrarySub = new byte[subData.Stride * subData.Height];
97 | var byteArraryPar = new byte[parData.Stride * parData.Height];
98 | Marshal.Copy(subData.Scan0, byteArrarySub, 0, subData.Stride * subData.Height);
99 | Marshal.Copy(parData.Scan0, byteArraryPar, 0, parData.Stride * parData.Height);
100 |
101 | var iMax = searchLeftTop.Y + searchSize.Height - subData.Height;//行
102 | var jMax = searchLeftTop.X + searchSize.Width - subData.Width;//列
103 |
104 | int smallOffsetX = 0, smallOffsetY = 0;
105 | int smallStartX = 0, smallStartY = 0;
106 | int pointX = -1; int pointY = -1;
107 | for (int i = searchLeftTop.Y; i < iMax; i++)
108 | {
109 | for (int j = searchLeftTop.X; j < jMax; j++)
110 | {
111 | //大图x,y坐标处的颜色值
112 | int x = j, y = i;
113 | int parIndex = i * parWidth * 4 + j * 4;
114 | var colorBig = System.Drawing.Color.FromArgb(byteArraryPar[parIndex + 3], byteArraryPar[parIndex + 2], byteArraryPar[parIndex + 1], byteArraryPar[parIndex]);
115 | ;
116 | if (ColorAEqualColorB(colorBig, startPixelColor, errorRange))
117 | {
118 | smallStartX = x - smallOffsetX;//待找的图X坐标
119 | smallStartY = y - smallOffsetY;//待找的图Y坐标
120 | int sum = 0;//所有需要比对的有效点
121 | int matchNum = 0;//成功匹配的点
122 | for (int m = 0; m < subHeight; m++)
123 | {
124 | for (int n = 0; n < subWidth; n++)
125 | {
126 | int x1 = n, y1 = m;
127 | int subIndex = m * subWidth * 4 + n * 4;
128 | var color = System.Drawing.Color.FromArgb(byteArrarySub[subIndex + 3], byteArrarySub[subIndex + 2], byteArrarySub[subIndex + 1], byteArrarySub[subIndex]);
129 |
130 | sum++;
131 | int x2 = smallStartX + x1, y2 = smallStartY + y1;
132 | int parReleativeIndex = y2 * parWidth * 4 + x2 * 4;//比对大图对应的像素点的颜色
133 | var colorPixel = System.Drawing.Color.FromArgb(byteArraryPar[parReleativeIndex + 3], byteArraryPar[parReleativeIndex + 2], byteArraryPar[parReleativeIndex + 1], byteArraryPar[parReleativeIndex]);
134 | if (ColorAEqualColorB(colorPixel, color, errorRange))
135 | {
136 | matchNum++;
137 | }
138 | }
139 | }
140 | if ((double)matchNum / sum >= matchRate)
141 | {
142 | Console.WriteLine((double)matchNum / sum);
143 | pointX = smallStartX + (int)(subWidth / 2.0);
144 | pointY = smallStartY + (int)(subHeight / 2.0);
145 | var point = new System.Drawing.Point(pointX, pointY);
146 | if (!ListContainsPoint(ListPoint, point, 10))
147 | {
148 | ListPoint.Add(point);
149 | }
150 | if (!isFindAll)
151 | {
152 | goto FIND_END;
153 | }
154 | }
155 | }
156 | //小图x1,y1坐标处的颜色值
157 | }
158 | }
159 | FIND_END:
160 | subBitmap.UnlockBits(subData);
161 | parBitmap.UnlockBits(parData);
162 | subBitmap.Dispose();
163 | parBitmap.Dispose();
164 | GC.Collect();
165 | return ListPoint;
166 | }
167 | #endregion
168 |
169 | #region 找字
170 | //struct TextFindBody
171 | //{
172 | // public System.Drawing.Point TextPoint;
173 | // public List ListPointsOnBigPic;
174 | //}
175 | ///
176 | /// 找文字,镂空的图片文字
177 | ///
178 | ///
179 | ///
180 | ///
181 | ///
182 | ///
183 | ///
184 | ///
185 | List FindText(string subPic, string parPic, System.Drawing.Rectangle searchRect, byte errorRange, double matchRate = 0.9, bool isFindAll = false)
186 | {
187 |
188 | List ListPoint = new List();
189 | var subBitmap = new Bitmap(subPic);
190 | var parBitmap = new Bitmap(parPic);
191 | int subWidth = subBitmap.Width;
192 | int subHeight = subBitmap.Height;
193 | int parWidth = parBitmap.Width;
194 | int parHeight = parBitmap.Height;
195 | var bgColor = subBitmap.GetPixel(0, 0);//背景红色
196 | if (searchRect.IsEmpty)
197 | {
198 | searchRect = new System.Drawing.Rectangle(0, 0, parBitmap.Width, parBitmap.Height);
199 | }
200 | var searchLeftTop = searchRect.Location;
201 | var searchSize = searchRect.Size;
202 | var subData = subBitmap.LockBits(new System.Drawing.Rectangle(0, 0, subBitmap.Width, subBitmap.Height), ImageLockMode.ReadOnly, System.Drawing.Imaging.PixelFormat.Format32bppArgb);
203 | var parData = parBitmap.LockBits(new System.Drawing.Rectangle(0, 0, parBitmap.Width, parBitmap.Height), ImageLockMode.ReadOnly, System.Drawing.Imaging.PixelFormat.Format32bppArgb);
204 | var byteArrarySub = new byte[subData.Stride * subData.Height];
205 | var byteArraryPar = new byte[parData.Stride * parData.Height];
206 | Marshal.Copy(subData.Scan0, byteArrarySub, 0, subData.Stride * subData.Height);
207 | Marshal.Copy(parData.Scan0, byteArraryPar, 0, parData.Stride * parData.Height);
208 | var iMax = searchLeftTop.Y + searchSize.Height - subData.Height;//行
209 | var jMax = searchLeftTop.X + searchSize.Width - subData.Width;//列
210 | System.Drawing.Color startPixelColor = System.Drawing.Color.FromArgb(0, 0, 0);
211 | int smallOffsetX = 0, smallOffsetY = 0;
212 | int smallStartX = 0, smallStartY = 0;
213 | int pointX = -1; int pointY = -1;
214 |
215 |
216 | for (int m = 0; m < subHeight; m++)
217 | {
218 | for (int n = 0; n < subWidth; n++)
219 | {
220 | smallOffsetX = n;
221 | smallOffsetY = m;
222 | int subIndex = m * subWidth * 4 + n * 4;
223 | var color = System.Drawing.Color.FromArgb(byteArrarySub[subIndex + 3], byteArrarySub[subIndex + 2], byteArrarySub[subIndex + 1], byteArrarySub[subIndex]);
224 | if (!ColorAEqualColorB(color, bgColor, errorRange))
225 | {
226 | startPixelColor = color;
227 | goto END;
228 | }
229 | }
230 | }
231 |
232 | END:
233 | for (int i = searchLeftTop.Y; i < iMax; i++)
234 | {
235 | for (int j = searchLeftTop.X; j < jMax; j++)
236 | {
237 | //大图x,y坐标处的颜色值
238 | int x = j, y = i;
239 | int parIndex = i * parWidth * 4 + j * 4;
240 | var colorBig = System.Drawing.Color.FromArgb(byteArraryPar[parIndex + 3], byteArraryPar[parIndex + 2], byteArraryPar[parIndex + 1], byteArraryPar[parIndex]);
241 | ;
242 |
243 | List myListPoint = new List();
244 | if (ColorAEqualColorB(colorBig, startPixelColor, errorRange))
245 | {
246 | smallStartX = x - smallOffsetX;//待找的图X坐标
247 | smallStartY = y - smallOffsetY;//待找的图Y坐标
248 | int sum = 0;//所有需要比对的有效点
249 | int matchNum = 0;//成功匹配的点
250 | for (int m = 0; m < subHeight; m++)
251 | {
252 | for (int n = 0; n < subWidth; n++)
253 | {
254 | int x1 = n, y1 = m;
255 | int subIndex = m * subWidth * 4 + n * 4;
256 | var color = System.Drawing.Color.FromArgb(byteArrarySub[subIndex + 3], byteArrarySub[subIndex + 2], byteArrarySub[subIndex + 1], byteArrarySub[subIndex]);
257 | if (color != bgColor)
258 | {
259 | sum++;
260 | int x2 = smallStartX + x1, y2 = smallStartY + y1;
261 | int parReleativeIndex = y2 * parWidth * 4 + x2 * 4;//比对大图对应的像素点的颜色
262 | var colorPixel = System.Drawing.Color.FromArgb(byteArraryPar[parReleativeIndex + 3], byteArraryPar[parReleativeIndex + 2], byteArraryPar[parReleativeIndex + 1], byteArraryPar[parReleativeIndex]);
263 | if (ColorAEqualColorB(colorPixel, color, errorRange))
264 | {
265 | matchNum++;
266 | }
267 | myListPoint.Add(new System.Drawing.Point(x2, y2));
268 | }
269 | }
270 | }
271 |
272 | double rate = (double)matchNum / sum;
273 | if (rate>= matchRate)
274 | {
275 | Console.WriteLine((double)matchNum / sum);
276 | pointX = smallStartX + (int)(subWidth / 2.0);
277 | pointY = smallStartY + (int)(subHeight / 2.0);
278 | var point = new System.Drawing.Point(pointX, pointY);
279 | if (!ListTextBodyContainsPoint(ListPoint, point, 1))
280 | {
281 | ListPoint.Add(new NumBody() { point = point, matchNum = matchNum,matchSum=sum, matchRate = rate, bodyCollectionPoint = myListPoint });
282 | }
283 | SearchNumbersByMatchNum(ref ListPoint);
284 | if (!isFindAll)
285 | {
286 | goto FIND_END;
287 | }
288 | }
289 | }
290 | //小图x1,y1坐标处的颜色值
291 | }
292 | }
293 | FIND_END:
294 | subBitmap.UnlockBits(subData);
295 | parBitmap.UnlockBits(parData);
296 | subBitmap.Dispose();
297 | parBitmap.Dispose();
298 | GC.Collect();
299 | return ListPoint;
300 | }
301 | bool ColorAEqualColorB(System.Drawing.Color colorA, System.Drawing.Color colorB, byte errorRange = 10)
302 | {
303 | return colorA.A <= colorB.A + errorRange && colorA.A >= colorB.A - errorRange &&
304 | colorA.R <= colorB.R + errorRange && colorA.R >= colorB.R - errorRange &&
305 | colorA.G <= colorB.G + errorRange && colorA.G >= colorB.G - errorRange &&
306 | colorA.B <= colorB.B + errorRange && colorA.B >= colorB.B - errorRange;
307 |
308 | }
309 | bool ListContainsPoint(List listPoint, System.Drawing.Point point, double errorRange = 10)
310 | {
311 | bool isExist = false;
312 | foreach (var item in listPoint)
313 | {
314 | if (item.X <= point.X + errorRange && item.X >= point.X - errorRange && item.Y <= point.Y + errorRange && item.Y >= point.Y - errorRange)
315 | {
316 | isExist = true;
317 | }
318 | }
319 | return isExist;
320 | }
321 | bool ListTextBodyContainsPoint(List listPoint, System.Drawing.Point point, double errorRange = 10)
322 | {
323 | bool isExist = false;
324 | foreach (var item in listPoint)
325 | {
326 |
327 | if (item.point.X <= point.X + errorRange && item.point.X >= point.X - errorRange && item.point.Y <= point.Y + errorRange && item.point.Y >= point.Y - errorRange)
328 | {
329 | isExist = true;
330 | }
331 | }
332 | return isExist;
333 | }
334 | #endregion
335 |
336 | #region 找色
337 |
338 | ///
339 | /// 查找颜色
340 | ///
341 | ///
342 | /// #412a50
343 | ///
344 | System.Drawing.Point FindColor(string parPic, string searchColor, System.Drawing.Rectangle searchRect, byte errorRange = 10)
345 | {
346 | var colorX = System.Drawing.ColorTranslator.FromHtml(searchColor);
347 | var parBitmap = new Bitmap(parPic);
348 | var parData = parBitmap.LockBits(new System.Drawing.Rectangle(0, 0, parBitmap.Width, parBitmap.Height), ImageLockMode.ReadOnly, System.Drawing.Imaging.PixelFormat.Format32bppArgb);
349 | var byteArraryPar = new byte[parData.Stride * parData.Height];
350 | Marshal.Copy(parData.Scan0, byteArraryPar, 0, parData.Stride * parData.Height);
351 | if (searchRect.IsEmpty)
352 | {
353 | searchRect = new System.Drawing.Rectangle(0, 0, parBitmap.Width, parBitmap.Height);
354 | }
355 | var searchLeftTop = searchRect.Location;
356 | var searchSize = searchRect.Size;
357 | var iMax = searchLeftTop.Y + searchSize.Height;//行
358 | var jMax = searchLeftTop.X + searchSize.Width;//列
359 | int pointX = -1; int pointY = -1;
360 | for (int m = searchRect.Y; m < iMax; m++)
361 | {
362 | for (int n = searchRect.X; n < jMax; n++)
363 | {
364 | int index = m * parBitmap.Width * 4 + n * 4;
365 | var color = System.Drawing.Color.FromArgb(byteArraryPar[index + 3], byteArraryPar[index + 2], byteArraryPar[index + 1], byteArraryPar[index]);
366 | if (ColorAEqualColorB(color, colorX, errorRange))
367 | {
368 | pointX = n;
369 | pointY = m;
370 | goto END;
371 | }
372 | }
373 | }
374 | END:
375 | parBitmap.UnlockBits(parData);
376 | return new System.Drawing.Point(pointX, pointY);
377 | }
378 | #endregion
379 |
380 |
381 | #region 查找数字
382 |
383 | ///
384 | /// 在指定区域里面查找数字
385 | ///
386 | ///
387 | ///
388 | ///
389 | ///
390 | ///
391 | int FindNumbers(Dictionary numDic, string parPic, System.Drawing.Rectangle searchRect, byte errorRange=8, double matchRate = 0.9)
392 | {
393 | //同一个区域找到多个相同的图片
394 | List ListBody = new List();
395 | foreach (var item in numDic)
396 | {
397 | var listPoint = FindText(item.Value, parPic, searchRect, errorRange, matchRate, true);
398 | foreach (var point in listPoint)
399 | {
400 | ListBody.Add(new NumBody() { num = item.Key,matchNum=point.matchNum,matchSum=point.matchSum, matchRate=point.matchRate, point = point.point, bodyCollectionPoint = point.bodyCollectionPoint });
401 | }
402 | }
403 |
404 | SearchNumbersByMatchNum(ref ListBody);
405 | var myList = from body in ListBody orderby body.point.X ascending select body;
406 | string number = "0";
407 | foreach (var item in myList)
408 | {
409 | number += item.num;
410 | }
411 | int num = Int32.Parse(number);
412 | return num;
413 | }
414 | ///
415 | /// 搜索同一个数字的时候,出现重叠的地方,用匹配度去过滤掉匹配度低的
416 | /// 比如同样是1,在控制匹配度允许下,一个(83,95)和(84,95)这两个点明显是同一个数字
417 | /// 此时谁的匹配度低过滤掉谁
418 | ///
419 | ///
420 | void SearchNumbersByMatchNum(ref List ListBody)
421 | {
422 | bool isValid = true;
423 | for (int i = 0; i < ListBody.Count; i++)
424 | {
425 | var body = ListBody[i];
426 |
427 | for (int j = i; j < ListBody.Count; j++)
428 | {
429 |
430 | var bodyX = ListBody[j];
431 | if (!bodyX.Equals(body))
432 | {
433 | int sameNum = 0;
434 | foreach (var item in body.bodyCollectionPoint)
435 | {
436 | if (bodyX.bodyCollectionPoint.Contains(item))
437 | {
438 | sameNum++;
439 | }
440 | }
441 | if (sameNum >= 1)//有1个以上点重合,表面图像重叠,删除像素点数少的图像
442 | {
443 | isValid = false;
444 |
445 | //如果某个数字100%匹配,那就不用比较了,这个数字肯定是对的
446 | double maxRate = 1;
447 | if (bodyX.matchRate >= maxRate)
448 | {
449 | ListBody.Remove(body);
450 | }
451 | else if (body.matchRate>=maxRate)
452 | {
453 | ListBody.Remove(bodyX);
454 | }
455 | else
456 | {
457 | if (bodyX.matchNum >= body.matchNum)//图像包含的所有像素个数
458 | {
459 | ListBody.Remove(body);
460 | }
461 | else
462 | {
463 | ListBody.Remove(bodyX);
464 | }
465 | }
466 | SearchNumbersByMatchNum(ref ListBody);
467 | }
468 | }
469 | }
470 | }
471 | if (isValid)
472 | {
473 | return;
474 | }
475 | }
476 |
477 | #endregion
478 |
479 | }
480 | }
481 |
--------------------------------------------------------------------------------