init
This commit is contained in:
		
							
								
								
									
										226
									
								
								test/.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										226
									
								
								test/.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,226 @@
 | 
			
		||||
# The following command works for downloading when using Git for Windows:
 | 
			
		||||
# curl -LOf http://gist.githubusercontent.com/kmorcinek/2710267/raw/.gitignore
 | 
			
		||||
#
 | 
			
		||||
# Download this file using PowerShell v3 under Windows with the following comand:
 | 
			
		||||
# Invoke-WebRequest https://gist.githubusercontent.com/kmorcinek/2710267/raw/ -OutFile .gitignore
 | 
			
		||||
#
 | 
			
		||||
# or wget:
 | 
			
		||||
# wget --no-check-certificate http://gist.githubusercontent.com/kmorcinek/2710267/raw/.gitignore
 | 
			
		||||
 | 
			
		||||
# User-specific files
 | 
			
		||||
*.suo
 | 
			
		||||
*.user
 | 
			
		||||
*.sln.docstates
 | 
			
		||||
 | 
			
		||||
# Build results
 | 
			
		||||
[Dd]ebug/
 | 
			
		||||
[Rr]elease/
 | 
			
		||||
x64/
 | 
			
		||||
[Bb]in/
 | 
			
		||||
[Oo]bj/
 | 
			
		||||
# build folder is nowadays used for build scripts and should not be ignored
 | 
			
		||||
#build/
 | 
			
		||||
 | 
			
		||||
# NuGet Packages
 | 
			
		||||
*.nupkg
 | 
			
		||||
# The packages folder can be ignored because of Package Restore
 | 
			
		||||
**/packages/*
 | 
			
		||||
# except build/, which is used as an MSBuild target.
 | 
			
		||||
!**/packages/build/
 | 
			
		||||
# Uncomment if necessary however generally it will be regenerated when needed
 | 
			
		||||
#!**/packages/repositories.config
 | 
			
		||||
 | 
			
		||||
# MSTest test Results
 | 
			
		||||
[Tt]est[Rr]esult*/
 | 
			
		||||
[Bb]uild[Ll]og.*
 | 
			
		||||
 | 
			
		||||
*_i.c
 | 
			
		||||
*_p.c
 | 
			
		||||
*.ilk
 | 
			
		||||
*.meta
 | 
			
		||||
*.obj
 | 
			
		||||
*.pch
 | 
			
		||||
*.pdb
 | 
			
		||||
*.pgc
 | 
			
		||||
*.pgd
 | 
			
		||||
*.rsp
 | 
			
		||||
*.sbr
 | 
			
		||||
*.tlb
 | 
			
		||||
*.tli
 | 
			
		||||
*.tlh
 | 
			
		||||
*.tmp
 | 
			
		||||
*.tmp_proj
 | 
			
		||||
*.log
 | 
			
		||||
*.vspscc
 | 
			
		||||
*.vssscc
 | 
			
		||||
.builds
 | 
			
		||||
*.pidb
 | 
			
		||||
*.scc
 | 
			
		||||
 | 
			
		||||
# Visual C++ cache files
 | 
			
		||||
ipch/
 | 
			
		||||
*.aps
 | 
			
		||||
*.ncb
 | 
			
		||||
*.opensdf
 | 
			
		||||
*.sdf
 | 
			
		||||
*.cachefile
 | 
			
		||||
 | 
			
		||||
# Visual Studio profiler
 | 
			
		||||
*.psess
 | 
			
		||||
*.vsp
 | 
			
		||||
*.vspx
 | 
			
		||||
 | 
			
		||||
# Guidance Automation Toolkit
 | 
			
		||||
*.gpState
 | 
			
		||||
 | 
			
		||||
# ReSharper is a .NET coding add-in
 | 
			
		||||
_ReSharper*/
 | 
			
		||||
*.[Rr]e[Ss]harper
 | 
			
		||||
 | 
			
		||||
# TeamCity is a build add-in
 | 
			
		||||
_TeamCity*
 | 
			
		||||
 | 
			
		||||
# DotCover is a Code Coverage Tool
 | 
			
		||||
*.dotCover
 | 
			
		||||
 | 
			
		||||
# NCrunch
 | 
			
		||||
*.ncrunch*
 | 
			
		||||
.*crunch*.local.xml
 | 
			
		||||
 | 
			
		||||
# Installshield output folder
 | 
			
		||||
[Ee]xpress/
 | 
			
		||||
 | 
			
		||||
# DocProject is a documentation generator add-in
 | 
			
		||||
DocProject/buildhelp/
 | 
			
		||||
DocProject/Help/*.HxT
 | 
			
		||||
DocProject/Help/*.HxC
 | 
			
		||||
DocProject/Help/*.hhc
 | 
			
		||||
DocProject/Help/*.hhk
 | 
			
		||||
DocProject/Help/*.hhp
 | 
			
		||||
DocProject/Help/Html2
 | 
			
		||||
DocProject/Help/html
 | 
			
		||||
 | 
			
		||||
# Click-Once directory
 | 
			
		||||
publish/
 | 
			
		||||
 | 
			
		||||
# Publish Web Output
 | 
			
		||||
*.Publish.xml
 | 
			
		||||
 | 
			
		||||
# Windows Azure Build Output
 | 
			
		||||
csx
 | 
			
		||||
*.build.csdef
 | 
			
		||||
 | 
			
		||||
# Windows Store app package directory
 | 
			
		||||
AppPackages/
 | 
			
		||||
 | 
			
		||||
# Others
 | 
			
		||||
*.Cache
 | 
			
		||||
ClientBin/
 | 
			
		||||
[Ss]tyle[Cc]op.*
 | 
			
		||||
~$*
 | 
			
		||||
*~
 | 
			
		||||
*.dbmdl
 | 
			
		||||
*.[Pp]ublish.xml
 | 
			
		||||
*.pfx
 | 
			
		||||
*.publishsettings
 | 
			
		||||
modulesbin/
 | 
			
		||||
tempbin/
 | 
			
		||||
 | 
			
		||||
# EPiServer Site file (VPP)
 | 
			
		||||
AppData/
 | 
			
		||||
 | 
			
		||||
# RIA/Silverlight projects
 | 
			
		||||
Generated_Code/
 | 
			
		||||
 | 
			
		||||
# Backup & report files from converting an old project file to a newer
 | 
			
		||||
# Visual Studio version. Backup files are not needed, because we have git ;-)
 | 
			
		||||
_UpgradeReport_Files/
 | 
			
		||||
Backup*/
 | 
			
		||||
UpgradeLog*.XML
 | 
			
		||||
UpgradeLog*.htm
 | 
			
		||||
 | 
			
		||||
# vim
 | 
			
		||||
*.txt~
 | 
			
		||||
*.swp
 | 
			
		||||
*.swo
 | 
			
		||||
 | 
			
		||||
# Temp files when opening LibreOffice on ubuntu
 | 
			
		||||
.~lock.*
 | 
			
		||||
 
 | 
			
		||||
# svn
 | 
			
		||||
.svn
 | 
			
		||||
 | 
			
		||||
# CVS - Source Control
 | 
			
		||||
**/CVS/
 | 
			
		||||
 | 
			
		||||
# Remainings from resolving conflicts in Source Control
 | 
			
		||||
*.orig
 | 
			
		||||
 | 
			
		||||
# SQL Server files
 | 
			
		||||
**/App_Data/*.mdf
 | 
			
		||||
**/App_Data/*.ldf
 | 
			
		||||
**/App_Data/*.sdf
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
#LightSwitch generated files
 | 
			
		||||
GeneratedArtifacts/
 | 
			
		||||
_Pvt_Extensions/
 | 
			
		||||
ModelManifest.xml
 | 
			
		||||
 | 
			
		||||
# =========================
 | 
			
		||||
# Windows detritus
 | 
			
		||||
# =========================
 | 
			
		||||
 | 
			
		||||
# Windows image file caches
 | 
			
		||||
Thumbs.db
 | 
			
		||||
ehthumbs.db
 | 
			
		||||
 | 
			
		||||
# Folder config file
 | 
			
		||||
Desktop.ini
 | 
			
		||||
 | 
			
		||||
# Recycle Bin used on file shares
 | 
			
		||||
$RECYCLE.BIN/
 | 
			
		||||
 | 
			
		||||
# OS generated files #
 | 
			
		||||
Icon?
 | 
			
		||||
 | 
			
		||||
# Mac desktop service store files
 | 
			
		||||
.DS_Store
 | 
			
		||||
 | 
			
		||||
# SASS Compiler cache
 | 
			
		||||
.sass-cache
 | 
			
		||||
 | 
			
		||||
# Visual Studio 2014 CTP
 | 
			
		||||
**/*.sln.ide
 | 
			
		||||
 | 
			
		||||
# Visual Studio temp something
 | 
			
		||||
.vs/
 | 
			
		||||
 | 
			
		||||
# dotnet stuff
 | 
			
		||||
project.lock.json
 | 
			
		||||
 | 
			
		||||
# VS 2015+
 | 
			
		||||
*.vc.vc.opendb
 | 
			
		||||
*.vc.db
 | 
			
		||||
 | 
			
		||||
# Rider
 | 
			
		||||
.idea/
 | 
			
		||||
 | 
			
		||||
# Visual Studio Code
 | 
			
		||||
.vscode/
 | 
			
		||||
 | 
			
		||||
# Output folder used by Webpack or other FE stuff
 | 
			
		||||
**/node_modules/*
 | 
			
		||||
**/wwwroot/*
 | 
			
		||||
 | 
			
		||||
# SpecFlow specific
 | 
			
		||||
*.feature.cs
 | 
			
		||||
*.feature.xlsx.*
 | 
			
		||||
*.Specs_*.html
 | 
			
		||||
 | 
			
		||||
# UWP Projects
 | 
			
		||||
AppPackages/
 | 
			
		||||
 | 
			
		||||
#####
 | 
			
		||||
# End of core ignore list, below put you custom 'per project' settings (patterns or path)
 | 
			
		||||
#####
 | 
			
		||||
							
								
								
									
										42
									
								
								test/ModBehaviour.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										42
									
								
								test/ModBehaviour.cs
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,42 @@
 | 
			
		||||
 | 
			
		||||
namespace test
 | 
			
		||||
{
 | 
			
		||||
    /// <summary>
 | 
			
		||||
    /// test模组的主要行为类
 | 
			
		||||
    /// 继承自Duckov.Modding.ModBehaviour,用于在游戏UI中显示物品价值
 | 
			
		||||
    /// </summary>
 | 
			
		||||
    public class ModBehaviour : Duckov.Modding.ModBehaviour
 | 
			
		||||
    {
 | 
			
		||||
 | 
			
		||||
        
 | 
			
		||||
        /// <summary>
 | 
			
		||||
        /// 模组初始化时调用,类似于构造函数
 | 
			
		||||
        /// </summary>
 | 
			
		||||
        void Awake()
 | 
			
		||||
        {
 | 
			
		||||
 | 
			
		||||
        }
 | 
			
		||||
        
 | 
			
		||||
        /// <summary>
 | 
			
		||||
        /// 模组销毁时调用,用于清理资源
 | 
			
		||||
        /// </summary>
 | 
			
		||||
        void OnDestroy()
 | 
			
		||||
        {
 | 
			
		||||
 | 
			
		||||
        }
 | 
			
		||||
        
 | 
			
		||||
        void OnEnable()
 | 
			
		||||
        {
 | 
			
		||||
 | 
			
		||||
        }
 | 
			
		||||
        
 | 
			
		||||
        /// <summary>
 | 
			
		||||
        /// 模组禁用时调用,取消事件监听器
 | 
			
		||||
        /// 取消订阅事件,防止在模组禁用后仍然响应事件
 | 
			
		||||
        /// </summary>
 | 
			
		||||
        void OnDisable()
 | 
			
		||||
        {
 | 
			
		||||
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										
											BIN
										
									
								
								test/libs/0Harmony.dll
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								test/libs/0Harmony.dll
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										35
									
								
								test/test.csproj
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										35
									
								
								test/test.csproj
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,35 @@
 | 
			
		||||
<Project Sdk="Microsoft.NET.Sdk">
 | 
			
		||||
  <PropertyGroup>
 | 
			
		||||
    <TargetFramework>netstandard2.1</TargetFramework>
 | 
			
		||||
    <Nullable>enable</Nullable>
 | 
			
		||||
    <!-- 下面这行里填写你的鸭科夫安装路径,这样编译器就能找到相关的dll文件 -->
 | 
			
		||||
    <DuckovPath>E:\Steam\steamapps\common\Escape from Duckov</DuckovPath>
 | 
			
		||||
    <AssemblyName>test</AssemblyName>
 | 
			
		||||
    <RootNamespace>test</RootNamespace>
 | 
			
		||||
    <!-- 自动生成绑定重定向来解决程序集版本冲突 -->
 | 
			
		||||
    <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
 | 
			
		||||
    <!-- 抑制程序集版本冲突警告 -->
 | 
			
		||||
    <NoWarn>$(NoWarn);MSB3277</NoWarn>
 | 
			
		||||
  </PropertyGroup>
 | 
			
		||||
  <PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
 | 
			
		||||
    <PlatformTarget>x64</PlatformTarget>
 | 
			
		||||
  </PropertyGroup>
 | 
			
		||||
  <PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
 | 
			
		||||
    <PlatformTarget>x64</PlatformTarget>
 | 
			
		||||
  </PropertyGroup>
 | 
			
		||||
  <ItemGroup>
 | 
			
		||||
        <Reference Include="$(DuckovPath)\Duckov_Data\Managed\TeamSoda.*" />
 | 
			
		||||
        <Reference Include="$(DuckovPath)\Duckov_Data\Managed\ItemStatsSystem.dll" />
 | 
			
		||||
        <Reference Include="$(DuckovPath)\Duckov_Data\Managed\Unity*" />
 | 
			
		||||
        <Reference Include="0Harmony">
 | 
			
		||||
          <HintPath>libs\0Harmony.dll</HintPath>
 | 
			
		||||
        </Reference>
 | 
			
		||||
  </ItemGroup>
 | 
			
		||||
  
 | 
			
		||||
  <!-- 解决System.Text.Encoding.Extensions版本冲突 -->
 | 
			
		||||
  <Target Name="AddBindingRedirects" AfterTargets="ResolveAssemblyReferences">
 | 
			
		||||
    <ItemGroup>
 | 
			
		||||
      <BindingRedirects Include="System.Text.Encoding.Extensions" OldVersion="0.0.0.0-8.0.0.0" NewVersion="4.0.11.0" />
 | 
			
		||||
    </ItemGroup>
 | 
			
		||||
  </Target>
 | 
			
		||||
</Project>
 | 
			
		||||
							
								
								
									
										24
									
								
								test/test.sln
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								test/test.sln
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,24 @@
 | 
			
		||||
Microsoft Visual Studio Solution File, Format Version 12.00
 | 
			
		||||
# Visual Studio Version 17
 | 
			
		||||
VisualStudioVersion = 17.5.2.0
 | 
			
		||||
MinimumVisualStudioVersion = 10.0.40219.1
 | 
			
		||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "test", "test.csproj", "{784BCDB1-58EF-470D-56B7-EE39393A307C}"
 | 
			
		||||
EndProject
 | 
			
		||||
Global
 | 
			
		||||
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
 | 
			
		||||
		Debug|Any CPU = Debug|Any CPU
 | 
			
		||||
		Release|Any CPU = Release|Any CPU
 | 
			
		||||
	EndGlobalSection
 | 
			
		||||
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
 | 
			
		||||
		{784BCDB1-58EF-470D-56B7-EE39393A307C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
 | 
			
		||||
		{784BCDB1-58EF-470D-56B7-EE39393A307C}.Debug|Any CPU.Build.0 = Debug|Any CPU
 | 
			
		||||
		{784BCDB1-58EF-470D-56B7-EE39393A307C}.Release|Any CPU.ActiveCfg = Release|Any CPU
 | 
			
		||||
		{784BCDB1-58EF-470D-56B7-EE39393A307C}.Release|Any CPU.Build.0 = Release|Any CPU
 | 
			
		||||
	EndGlobalSection
 | 
			
		||||
	GlobalSection(SolutionProperties) = preSolution
 | 
			
		||||
		HideSolutionNode = FALSE
 | 
			
		||||
	EndGlobalSection
 | 
			
		||||
	GlobalSection(ExtensibilityGlobals) = postSolution
 | 
			
		||||
		SolutionGuid = {5C5F3569-CECB-482D-B101-BA6C0384A647}
 | 
			
		||||
	EndGlobalSection
 | 
			
		||||
EndGlobal
 | 
			
		||||
		Reference in New Issue
	
	Block a user