New TeslaConsole.BattleTech namespace mirroring TeslaConsole.RedPlanet's mission layer: BTMission/BTFreeForAllMission (egg serializer; RP wire framing and ordinal bitmaps reused verbatim), BTParticipant/BTPlayer/BTCamera (BT participant fields: advancedDamage, experience, vehicleValue, patch, role), and the BTConfig/BTScenario/BTMap/BTVehicle/BTWeather/BTRole catalog loaded from BattleTech\BTConfig.xml (reconstructed from the Mac Console 4.10 ini BT tree). Free For All and No Return share one mission class - both send scenario=freeforall; the mode is the role assigned to each pilot. BTGoldenEggTests (7 tests, recovered-only) diff the generated egg field-by-field against two eggs captured from the original consoles (cavern.egg, TESTARN.EGG): order-independent per-section compare with font-rendered bitmap pixel rows excluded, ordinal art byte-exact vs TESTARN.EGG, EggFileMessage framing reassembly, role de-dup, No Return role semantics, and shipped-catalog contents. Invoker gains BTEggString/ BTEggFraming reflection cases. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
75 lines
3.3 KiB
XML
75 lines
3.3 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
<PropertyGroup>
|
|
<AssemblyName>TeslaConsole</AssemblyName>
|
|
<GenerateAssemblyInfo>False</GenerateAssemblyInfo>
|
|
<OutputType>WinExe</OutputType>
|
|
<UseWindowsForms>True</UseWindowsForms>
|
|
<TargetFramework>net48</TargetFramework>
|
|
<LangVersion>Preview</LangVersion>
|
|
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
|
|
<ApplicationIcon>app.ico</ApplicationIcon>
|
|
<RootNamespace />
|
|
<!-- Decompiled from the original net20 TeslaConsole.exe; legacy WinForms 2.0 sources -->
|
|
<Nullable>disable</Nullable>
|
|
<ImplicitUsings>disable</ImplicitUsings>
|
|
<!-- .resx files embed BinaryFormatter-serialized bitmaps (non-string resources) -->
|
|
<GenerateResourceUsePreserializedResources>true</GenerateResourceUsePreserializedResources>
|
|
<!-- CS0649: decompiled WinForms designer 'components' fields are never assigned -->
|
|
<NoWarn>$(NoWarn);CS0649</NoWarn>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<!-- net48 reference assemblies so the project builds without a full targeting pack installed -->
|
|
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.3" PrivateAssets="all" />
|
|
<!-- Required to read the pre-serialized binary resources above -->
|
|
<PackageReference Include="System.Resources.Extensions" Version="6.0.0" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<!-- Runtime content the console loads relative to the exe (RPConfig.cs / RPStrings.cs / AppRegistry.cs) -->
|
|
<Content Include="RedPlanet\RPConfig.xml" CopyToOutputDirectory="PreserveNewest" />
|
|
<Content Include="RedPlanet\RPStrings.xml" CopyToOutputDirectory="PreserveNewest" />
|
|
<Content Include="RedPlanet\Apps.xml" CopyToOutputDirectory="PreserveNewest" />
|
|
<Content Include="BattleTech\BTConfig.xml" CopyToOutputDirectory="PreserveNewest" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<!-- Reference-only material: original binary + source art. Not compiled, not copied. -->
|
|
<None Remove="original\**" />
|
|
<None Remove="images\**" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<!-- The differential test project lives under tests\; keep its sources out of this build. -->
|
|
<Compile Remove="tests\**" />
|
|
<None Remove="tests\**" />
|
|
<Content Remove="tests\**" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<Reference Include="System.Configuration.Install" />
|
|
<Reference Include="System.Xml" />
|
|
<Reference Include="System.ServiceProcess" />
|
|
<Reference Include="Microsoft.VisualBasic" />
|
|
<Reference Include="WeifenLuo.WinFormsUI.Docking">
|
|
<HintPath>lib\WeifenLuo.WinFormsUI.Docking.dll</HintPath>
|
|
</Reference>
|
|
<Reference Include="Munga Net">
|
|
<HintPath>lib\Munga Net.dll</HintPath>
|
|
</Reference>
|
|
<Reference Include="BitmapLibrary">
|
|
<HintPath>lib\BitmapLibrary.dll</HintPath>
|
|
</Reference>
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<!-- The wire contract (Tesla.Net) is now built from source. The project emits an
|
|
assembly still named TeslaConsoleLaunchLib so the BinaryFormatter protocol is
|
|
byte-identical to the old vendored lib\TeslaConsoleLaunchLib.dll. -->
|
|
<ProjectReference Include="..\Contract\Tesla.Contract.csproj" />
|
|
<!-- Secure-config provisioning (Tesla.PodConfigurationServer, OFBCryptoStream...),
|
|
also built from source now, emitting assembly TeslaSecureConfiguration. -->
|
|
<ProjectReference Include="..\SecureConfig\Tesla.SecureConfig.csproj" />
|
|
</ItemGroup>
|
|
</Project>
|