-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathS1MAPI.csproj
More file actions
242 lines (221 loc) · 9.66 KB
/
Copy pathS1MAPI.csproj
File metadata and controls
242 lines (221 loc) · 9.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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
91
92
93
94
95
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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
<Project Sdk="Microsoft.NET.Sdk">
<!-- Import local overrides for contributor paths from repository root -->
<Import Project="local.build.props" Condition="Exists('local.build.props')" />
<PropertyGroup>
<ImplicitUsings>enable</ImplicitUsings>
<RootNamespace>S1MAPI</RootNamespace>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<LangVersion>default</LangVersion>
<NeutralLanguage>en-US</NeutralLanguage>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
<DefaultItemExcludes>$(DefaultItemExcludes);Tests/**</DefaultItemExcludes>
<Configurations>Mono;Il2cpp</Configurations>
<Nullable>enable</Nullable>
<OutputType>Library</OutputType>
<PackageId>S1MAPI</PackageId>
<Title>Schedule 1 Mapping API</Title>
<Authors>S1MAPI Contributors</Authors>
<Description>A mapping and construction library for Schedule 1 mods, providing procedural mesh generation, building construction, and GLTF loading while remaining update-resilient.</Description>
<PackageTags>schedule-1;mapping;modding;il2cpp;mono;procedural-mesh;gltf</PackageTags>
<RepositoryUrl>https://github.com/ifBars/S1MAPI</RepositoryUrl>
<PackageLicenseExpression>GPL-3.0-or-later</PackageLicenseExpression>
<PackageReadmeFile>README.md</PackageReadmeFile>
<Version>2.0.1</Version>
</PropertyGroup>
<!-- Mono build for base game mono assemblies -->
<PropertyGroup Condition="'$(Configuration)'=='Mono'">
<TargetFramework>netstandard2.1</TargetFramework>
<AssemblyName>S1MAPI_Mono</AssemblyName>
<DefineConstants>MONO</DefineConstants>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
</PropertyGroup>
<!-- Il2Cpp build for MelonLoader net6 assemblies -->
<PropertyGroup Condition="'$(Configuration)'=='Il2cpp'">
<TargetFramework>net6.0</TargetFramework>
<AssemblyName>S1MAPI_Il2cpp</AssemblyName>
<DefineConstants>IL2CPP</DefineConstants>
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
</PropertyGroup>
<!-- Mono Unity references -->
<ItemGroup Condition="'$(Configuration)'=='Mono'">
<!-- Core Unity Engine -->
<Reference Include="UnityEngine.CoreModule">
<HintPath>$(MonoAssembliesPath)\UnityEngine.CoreModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine">
<HintPath>$(MonoAssembliesPath)\UnityEngine.dll</HintPath>
</Reference>
<!-- Graphics and Rendering -->
<Reference Include="UnityEngine.AnimationModule">
<HintPath>$(MonoAssembliesPath)\UnityEngine.AnimationModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.AudioModule">
<HintPath>$(MonoAssembliesPath)\UnityEngine.AudioModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.ImageConversionModule">
<HintPath>$(MonoAssembliesPath)\UnityEngine.ImageConversionModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.IMGUIModule">
<HintPath>$(MonoAssembliesPath)\UnityEngine.IMGUIModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.PhysicsModule">
<HintPath>$(MonoAssembliesPath)\UnityEngine.PhysicsModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.TextRenderingModule">
<HintPath>$(MonoAssembliesPath)\UnityEngine.TextRenderingModule.dll</HintPath>
</Reference>
<!-- UI Systems -->
<Reference Include="UnityEngine.UI">
<HintPath>$(MonoAssembliesPath)\UnityEngine.UI.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.UIModule">
<HintPath>$(MonoAssembliesPath)\UnityEngine.UIModule.dll</HintPath>
</Reference>
<Reference Include="Unity.TextMeshPro">
<HintPath>$(MonoAssembliesPath)\Unity.TextMeshPro.dll</HintPath>
</Reference>
<!-- Navigation and AI -->
<Reference Include="UnityEngine.AIModule">
<HintPath>$(MonoAssembliesPath)\UnityEngine.AIModule.dll</HintPath>
</Reference>
<!-- Input Systems -->
<Reference Include="UnityEngine.InputLegacyModule">
<HintPath>$(MonoAssembliesPath)\UnityEngine.InputLegacyModule.dll</HintPath>
</Reference>
<!-- Terrain -->
<Reference Include="UnityEngine.TerrainModule">
<HintPath>$(MonoAssembliesPath)\UnityEngine.TerrainModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.TerrainPhysicsModule">
<HintPath>$(MonoAssembliesPath)\UnityEngine.TerrainPhysicsModule.dll</HintPath>
</Reference>
<!-- JSON Parsing -->
<Reference Include="Newtonsoft.Json">
<HintPath>$(MonoAssembliesPath)\Newtonsoft.Json.dll</HintPath>
</Reference>
<!-- FishNet (Mono) -->
<Reference Include="FishNet.Runtime">
<HintPath>$(MonoAssembliesPath)\FishNet.Runtime.dll</HintPath>
<Private>False</Private>
</Reference>
<!-- Harmony (via MelonLoader) -->
<Reference Include="0Harmony">
<HintPath>$(MelonLoaderAssembliesPath)\0Harmony.dll</HintPath>
<Private>False</Private>
</Reference>
</ItemGroup>
<!-- Il2Cpp Unity references -->
<ItemGroup Condition="'$(Configuration)'=='Il2cpp'">
<!-- Core Unity Engine -->
<Reference Include="UnityEngine.CoreModule">
<HintPath>$(Il2CppAssembliesPath)\UnityEngine.CoreModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine">
<HintPath>$(Il2CppAssembliesPath)\UnityEngine.dll</HintPath>
</Reference>
<!-- Graphics and Rendering -->
<Reference Include="UnityEngine.AnimationModule">
<HintPath>$(Il2CppAssembliesPath)\UnityEngine.AnimationModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.AudioModule">
<HintPath>$(Il2CppAssembliesPath)\UnityEngine.AudioModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.ImageConversionModule">
<HintPath>$(Il2CppAssembliesPath)\UnityEngine.ImageConversionModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.IMGUIModule">
<HintPath>$(Il2CppAssembliesPath)\UnityEngine.IMGUIModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.PhysicsModule">
<HintPath>$(Il2CppAssembliesPath)\UnityEngine.PhysicsModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.TextRenderingModule">
<HintPath>$(Il2CppAssembliesPath)\UnityEngine.TextRenderingModule.dll</HintPath>
</Reference>
<!-- UI Systems -->
<Reference Include="UnityEngine.UI">
<HintPath>$(Il2CppAssembliesPath)\UnityEngine.UI.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.UIModule">
<HintPath>$(Il2CppAssembliesPath)\UnityEngine.UIModule.dll</HintPath>
</Reference>
<Reference Include="Unity.TextMeshPro">
<HintPath>$(Il2CppAssembliesPath)\Unity.TextMeshPro.dll</HintPath>
</Reference>
<!-- Navigation and AI -->
<Reference Include="UnityEngine.AIModule">
<HintPath>$(Il2CppAssembliesPath)\UnityEngine.AIModule.dll</HintPath>
</Reference>
<!-- Input Systems -->
<Reference Include="UnityEngine.InputLegacyModule">
<HintPath>$(Il2CppAssembliesPath)\UnityEngine.InputLegacyModule.dll</HintPath>
</Reference>
<!-- Terrain -->
<Reference Include="UnityEngine.TerrainModule">
<HintPath>$(Il2CppAssembliesPath)\UnityEngine.TerrainModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.TerrainPhysicsModule">
<HintPath>$(Il2CppAssembliesPath)\UnityEngine.TerrainPhysicsModule.dll</HintPath>
</Reference>
<!-- JSON Parsing -->
<Reference Include="Newtonsoft.Json">
<HintPath>$(Il2CppAssembliesPath)\Newtonsoft.Json.dll</HintPath>
</Reference>
<!-- Core IL2CPP Runtime -->
<Reference Include="Il2Cppmscorlib">
<HintPath>$(Il2CppAssembliesPath)\Il2Cppmscorlib.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Il2CppInterop.Runtime">
<HintPath>$(Il2CppMLAssembliesPath)\Il2CppInterop.Runtime.dll</HintPath>
<Private>False</Private>
</Reference>
<!-- FishNet (Il2Cpp) -->
<Reference Include="Il2CppFishNet.Runtime">
<HintPath>$(Il2CppAssembliesPath)\Il2CppFishNet.Runtime.dll</HintPath>
<Private>False</Private>
</Reference>
<!-- Harmony (via MelonLoader) -->
<Reference Include="0Harmony">
<HintPath>$(Il2CppMLAssembliesPath)\0Harmony.dll</HintPath>
<Private>False</Private>
</Reference>
</ItemGroup>
<!-- Source Files -->
<ItemGroup>
<Compile Include="Core\**\*.cs" />
<Compile Include="Extensions\**\*.cs" />
<Compile Include="ProceduralMesh\**\*.cs" />
<Compile Include="Building\**\*.cs" />
<Compile Include="Gltf\**\*.cs" />
<Compile Include="S1\**\*.cs" />
<Compile Include="Utils\**\*.cs" />
</ItemGroup>
<!-- Embedded Resources -->
<ItemGroup>
<EmbeddedResource Include="Resources\**\*" />
<EmbeddedResource Remove="api\**" />
<EmbeddedResource Remove="_site\**" />
<EmbeddedResource Remove="Public\**" />
</ItemGroup>
<ItemGroup>
<None Remove="local.build.props.example" />
<None Remove="AGENTS.md" />
<None Remove="CODING_STANDARDS.md" />
<None Remove="api\**" />
<None Remove="_site\**" />
<None Remove="Public\**" />
<None Remove="README_THUNDERSTORE.md" />
<None Remove="nexuspost.bbcode" />
<None Include="README.md" Pack="true" PackagePath="\" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="13.0.2" />
</ItemGroup>
<!-- Post-build: Copy to game UserLibs folder -->
<Target Name="CopyToUserLibs" AfterTargets="Build" Condition="'$(UserLibsPath)'!=''">
<Copy SourceFiles="$(TargetPath)" DestinationFolder="$(UserLibsPath)" />
<Message Text="Copied $(TargetPath) to $(UserLibsPath)" Importance="high" />
</Target>
</Project>