Skip to content

Commit d53cf65

Browse files
committed
base project
1 parent dbbedef commit d53cf65

24 files changed

+10299
-0
lines changed

CommandBlock.sln

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
Microsoft Visual Studio Solution File, Format Version 12.00
2+
# Visual Studio Version 16
3+
VisualStudioVersion = 16.0.29613.14
4+
MinimumVisualStudioVersion = 10.0.40219.1
5+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "XjJeiManager", "XjJeiManager.csproj", "{F90D2B04-6797-4CDB-967C-4AF374BC3811}"
6+
EndProject
7+
Global
8+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
9+
Debug|Any CPU = Debug|Any CPU
10+
Release|Any CPU = Release|Any CPU
11+
EndGlobalSection
12+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
13+
{F90D2B04-6797-4CDB-967C-4AF374BC3811}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
14+
{F90D2B04-6797-4CDB-967C-4AF374BC3811}.Debug|Any CPU.Build.0 = Debug|Any CPU
15+
{F90D2B04-6797-4CDB-967C-4AF374BC3811}.Release|Any CPU.ActiveCfg = Release|Any CPU
16+
{F90D2B04-6797-4CDB-967C-4AF374BC3811}.Release|Any CPU.Build.0 = Release|Any CPU
17+
EndGlobalSection
18+
GlobalSection(SolutionProperties) = preSolution
19+
HideSolutionNode = FALSE
20+
EndGlobalSection
21+
GlobalSection(ExtensibilityGlobals) = postSolution
22+
SolutionGuid = {8AEA464E-0054-4063-8631-A4FCC70DD561}
23+
EndGlobalSection
24+
EndGlobal

ModConnection.cs

+83
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
using System;
2+
using System.Reflection;
3+
using System.Collections.Generic;
4+
using Game;
5+
using Engine;
6+
7+
namespace CommandBlock
8+
{
9+
public static class ModConnection
10+
{
11+
public static IEnumerator<TypeInfo> GetBlockEnumerator()
12+
{
13+
var list = new List<TypeInfo>();
14+
list.AddRange(typeof(Game.BlocksManager).Assembly.DefinedTypes);
15+
list.AddRange(typeof(ModConnection).Assembly.DefinedTypes);
16+
return list.GetEnumerator();
17+
}
18+
19+
public static int[] GetElectricBlocks()
20+
{
21+
return new int[] {
22+
133,
23+
140,
24+
137,
25+
143,
26+
156,
27+
134,
28+
135,
29+
145,
30+
224,
31+
146,
32+
157,
33+
180,
34+
181,
35+
183,
36+
138,
37+
139,
38+
141,
39+
142,
40+
184,
41+
187,
42+
186,
43+
188,
44+
144,
45+
151,
46+
179,
47+
152,
48+
182,
49+
185,
50+
56,
51+
57,
52+
58,
53+
83,
54+
84,
55+
166,
56+
194,
57+
86,
58+
63,
59+
97,
60+
98,
61+
210,
62+
211,
63+
105,
64+
106,
65+
107,
66+
234,
67+
235,
68+
236,
69+
147,
70+
153,
71+
154,
72+
223,
73+
155,
74+
120,
75+
121,
76+
199,
77+
216,
78+
227,
79+
237
80+
};
81+
}
82+
}
83+
}

Properties/AssemblyInfo.cs

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
using System.Reflection;
2+
using System.Runtime.CompilerServices;
3+
4+
// Information about this assembly is defined by the following attributes.
5+
// Change them to the values specific to your project.
6+
7+
[assembly: AssemblyTitle("CommandBlock")]
8+
[assembly: AssemblyDescription("")]
9+
[assembly: AssemblyConfiguration("")]
10+
[assembly: AssemblyCompany("")]
11+
[assembly: AssemblyProduct("")]
12+
[assembly: AssemblyCopyright("${AuthorCopyright}")]
13+
[assembly: AssemblyTrademark("")]
14+
[assembly: AssemblyCulture("")]
15+
16+
// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}".
17+
// The form "{Major}.{Minor}.*" will automatically update the build and revision,
18+
// and "{Major}.{Minor}.{Build}.*" will update just the revision.
19+
20+
[assembly: AssemblyVersion("1.0.*")]
21+
22+
// The following attributes are used to specify the signing key for the assembly,
23+
// if desired. See the Mono documentation for more information about signing.
24+
25+
//[assembly: AssemblyDelaySign(false)]
26+
//[assembly: AssemblyKeyFile("")]

XjDataType.cs

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
using Engine;
2+
using System;
3+
using System.Collections.Generic;
4+
using System.Linq;
5+
using System.Text;
6+
using System.Threading.Tasks;
7+
using System.Xml.Linq;
8+
9+
namespace Game
10+
{
11+
class XjDataType
12+
{
13+
private XElement xinit;//初始化
14+
private Point3 point;
15+
private string blockname_;
16+
private XElement xdata_;
17+
public XjDataType(string blockname,Point3 p,XElement xdata=null){
18+
blockname_ = blockname;
19+
point = p;
20+
xdata_ = xdata;
21+
init();
22+
}
23+
private void init() {
24+
xinit = new XElement(blockname_);
25+
xinit.Add(new XElement("point",point));
26+
xinit.Add(new XElement("data",xdata_));
27+
}
28+
public XElement makedata(){
29+
return this.xinit;
30+
}
31+
}
32+
}

XjJeiManager.csproj

+78
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup>
4+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
5+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
6+
<ProjectGuid>{F90D2B04-6797-4CDB-967C-4AF374BC3811}</ProjectGuid>
7+
<OutputType>Library</OutputType>
8+
<RootNamespace>CommandBlock</RootNamespace>
9+
<AssemblyName>SCCRF</AssemblyName>
10+
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
11+
<TargetFrameworkProfile />
12+
</PropertyGroup>
13+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
14+
<DebugSymbols>true</DebugSymbols>
15+
<DebugType>full</DebugType>
16+
<Optimize>false</Optimize>
17+
<OutputPath>bin\Debug</OutputPath>
18+
<DefineConstants>DEBUG;</DefineConstants>
19+
<ErrorReport>prompt</ErrorReport>
20+
<WarningLevel>4</WarningLevel>
21+
<ConsolePause>false</ConsolePause>
22+
</PropertyGroup>
23+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
24+
<Optimize>true</Optimize>
25+
<OutputPath>bin\Release</OutputPath>
26+
<ErrorReport>prompt</ErrorReport>
27+
<WarningLevel>4</WarningLevel>
28+
<ConsolePause>false</ConsolePause>
29+
</PropertyGroup>
30+
<ItemGroup>
31+
<Compile Include="Properties\AssemblyInfo.cs" />
32+
<Compile Include="XjJeiManager\CellInfo.cs" />
33+
<Compile Include="XjJeiManager\CellInfoShow.cs" />
34+
<Compile Include="XjJeiManager\CodeTable.cs" />
35+
<Compile Include="XjJeiManager\JEIinit.cs" />
36+
<Compile Include="XjJeiManager\MessageInfo.cs" />
37+
<Compile Include="XjJeiManager\MoreInfo.cs" />
38+
<Compile Include="XjJeiManager\XjBitmapClickWidget.cs" />
39+
<Compile Include="XjJeiManager\XjBitmapWidget.cs" />
40+
<Compile Include="XjJeiManager\XJCompare.cs" />
41+
<Compile Include="XjJeiManager\XjJeiBehavior.cs" />
42+
<Compile Include="XjJeiManager\XjJeiBlock.cs" />
43+
<Compile Include="XjJeiManager\XjJeiLibrary.cs" />
44+
<Compile Include="XjJeiManager\XjJeiManager.cs" />
45+
<Compile Include="XjJeiManager\XjJeiWidget.cs" />
46+
<Compile Include="XjJeiManager\XjTimer.cs" />
47+
<Compile Include="XjJeiManager\ZhcNToPinyin.cs" />
48+
</ItemGroup>
49+
<ItemGroup>
50+
<Reference Include="Engine, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
51+
<SpecificVersion>False</SpecificVersion>
52+
<HintPath>..\..\2.2Mod开发引用文件 (1)\Engine.dll</HintPath>
53+
</Reference>
54+
<Reference Include="EntitySystem, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
55+
<SpecificVersion>False</SpecificVersion>
56+
<HintPath>..\..\2.2Mod开发引用文件 (1)\EntitySystem.dll</HintPath>
57+
</Reference>
58+
<Reference Include="netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51" />
59+
<Reference Include="Survivalcraft, Version=2.2.10.4, Culture=neutral, processorArchitecture=MSIL">
60+
<SpecificVersion>False</SpecificVersion>
61+
<HintPath>..\..\2.2Mod开发引用文件 (1)\Survivalcraft.dll</HintPath>
62+
</Reference>
63+
<Reference Include="System" />
64+
<Reference Include="System_Xml">
65+
<HintPath>..\..\..\..\..\[20200929]SC2.2mobile\assimbles\System_Xml.dll</HintPath>
66+
</Reference>
67+
<Reference Include="System_Xml_Linq">
68+
<HintPath>..\..\..\..\..\[20200929]SC2.2mobile\assimbles\System_Xml_Linq.dll</HintPath>
69+
</Reference>
70+
</ItemGroup>
71+
<ItemGroup>
72+
<WCFMetadata Include="Connected Services\" />
73+
</ItemGroup>
74+
<ItemGroup>
75+
<None Include="packages.config" />
76+
</ItemGroup>
77+
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
78+
</Project>

0 commit comments

Comments
 (0)