2026-09-11 23:23:20 +02:00
|
|
|
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
|
<!-- The game simulation built without Unity: the headless counterpart of the Aetheria.Shared.Unity assembly.
|
|
|
|
|
Compiles ServerShared and its dependencies from source with no Unity defines, so a successful build is the
|
|
|
|
|
check that the simulation stays independent of the engine. Tools and test harnesses reference this project. -->
|
|
|
|
|
<PropertyGroup>
|
Delete the in-tree cache, JsonKnownTypes and vendored MessagePack
Cut 8b, deletes first. The old authorities are removed, not demoted:
- ServerShared/CultCache: CultCache.cs, DatabaseEntry.cs (root [Union],
DatabaseLink, INamedEntry), RegisterResolver.cs, TypeFormatterResolver.cs,
JsonConverters.cs, JsonKnownTypes/**.
- Assets/Plugins/MessagePack/** and System.Runtime.CompilerServices.Unsafe.dll
(org.gamecult.cultlib ships both).
- GalaxyMapLayerData, PlayerData, GlobalSettingsAttribute.
- The inspector attributes CultLib already carries or nothing reads.
Kept and moved: MathFormatters.cs and MathResolver.cs to
ServerShared/Serialization; GetAllChildClasses, SplitCamelCase,
FormatTypeName, MaxBy and MinBy to Extensions.cs; Inspectable,
PreferredInspectorAttribute and the five Aetheria drawer attributes to
ServerShared/Attributes.cs. Aetheria.Shared.csproj drops the vendored
MessagePack include and the Unsafe package; the asmdef drops MessagePack.
Does not build: the data model moves onto CultLib in the next commit.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 18:42:09 +02:00
|
|
|
<!-- Unity compiles ServerShared against .NET Standard 2.1 -->
|
2026-09-11 23:23:20 +02:00
|
|
|
<TargetFramework>netstandard2.1</TargetFramework>
|
|
|
|
|
<LangVersion>9.0</LangVersion>
|
|
|
|
|
<Nullable>disable</Nullable>
|
|
|
|
|
<ImplicitUsings>disable</ImplicitUsings>
|
|
|
|
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
|
|
|
|
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
|
|
|
|
|
<!-- UniRx's own switch for building outside Unity -->
|
|
|
|
|
<DefineConstants>$(DefineConstants);UniRxLibrary</DefineConstants>
|
|
|
|
|
<!-- Existing code warnings; the build is a Unity-independence check, not a lint pass -->
|
|
|
|
|
<NoWarn>$(NoWarn);CS0108;CS0114;CS0162;CS0168;CS0169;CS0219;CS0414;CS0618;CS0649;CS8321;CS8981;SYSLIB0021</NoWarn>
|
|
|
|
|
<Assets>$(MSBuildThisFileDirectory)..\Assets\</Assets>
|
|
|
|
|
</PropertyGroup>
|
|
|
|
|
<ItemGroup>
|
|
|
|
|
<Compile Include="$(Assets)Scripts\ServerShared\**\*.cs" />
|
|
|
|
|
<Compile Include="$(Assets)Plugins\UniRx\Scripts\**\*.cs" Exclude="$(Assets)Plugins\UniRx\Scripts\UnityEngineBridge\**;$(Assets)Plugins\UniRx\Scripts\UnityWinRTBridge\**;$(Assets)Plugins\UniRx\Scripts\InternalUtil\MicroCoroutine.cs" />
|
|
|
|
|
<!-- The reactive collections live in UniRx's Unity bridge but fence their Unity parts behind UniRxLibrary -->
|
|
|
|
|
<Compile Include="$(Assets)Plugins\UniRx\Scripts\UnityEngineBridge\ReactiveProperty.cs;$(Assets)Plugins\UniRx\Scripts\UnityEngineBridge\ReactiveCollection.cs;$(Assets)Plugins\UniRx\Scripts\UnityEngineBridge\ReactiveDictionary.cs" />
|
|
|
|
|
<Compile Include="$(Assets)Plugins\Ink\**\*.cs" />
|
|
|
|
|
</ItemGroup>
|
2026-10-13 02:01:20 +02:00
|
|
|
<ItemGroup>
|
|
|
|
|
<!-- Tests record reveals through Entity.RecordReveal, the book's one writer -->
|
|
|
|
|
<InternalsVisibleTo Include="Aetheria.Shared.Tests" />
|
|
|
|
|
</ItemGroup>
|
2026-09-11 23:23:20 +02:00
|
|
|
<ItemGroup>
|
2026-09-24 19:17:40 +02:00
|
|
|
<ProjectReference Include="$(CultMathRoot)\packages\cultmath\src\CultMath\CultMath.csproj" />
|
Move the ServerShared data model onto CultLib's CultCache
Cut 8b. Aetheria.Shared builds headless against GameCult.Caching and
GameCult.Caching.MessagePack at the pinned CultLib; the pin guard also
checks the Caching project exists.
Documents: [CultDocument("aetheria.<type>", "1")] with [MessagePackObject]
and integer [Key]s on the Q7 concrete types (the eight ItemData leaves,
Faction, FactionProductData, PersonalityAttribute, NameFile, OrbitData, the
four BodyData leaves, SavedZone, SavedGame, PlayerSettings, InputLayout).
SavedGame and PlayerSettings are [CultGlobal]; Name members are [CultName].
ItemData, CraftedItemData, EquippableItemData, BodyData and AgentTask lose
[MessagePackObject]; BodyData and AgentTask lose their [Union]s. InputLayout
moves into ServerShared so AetheriaStores can route it.
References: Guid and DatabaseLink<T> members become CultRecordRef<T>;
Guid-keyed maps become ref-keyed with [CultReference(..., many: true)];
ZonePack holds refs to orbit and body records. Runtime maps (Zone orbits,
bodies and belts, cargo ItemsOfType, agent targets) key by CultRecordKey.
Identity is the record key: ID comparisons become reference or key
comparisons. StatModifierData.RequireBehavior is a simple type name.
AetheriaStores.Open composes the catalog (read-only unless writable), run
and player stores, one home per type. CultRecordRefs carries IsSet, a
null-safe Get(ref), RefOf (key from TryGetHandle) and Upsert.
ItemManager.GetData is the one item resolution path. MathResolver is
declared by [assembly: CultCacheFormatterResolver].
Inspector attributes: text, range and asset path map onto CultLib's
CultInspector attributes (asset path only on string members); every
replaced Aetheria attribute keeps [Inspectable] for the runtime panel.
Builds: Aetheria.Shared. Does not build: AetherDb and the Unity project,
which follow.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 19:00:42 +02:00
|
|
|
<ProjectReference Include="$(CultLibRoot)\src\GameCult.Caching\GameCult.Caching.csproj" />
|
|
|
|
|
<ProjectReference Include="$(CultLibRoot)\src\GameCult.Caching.MessagePack\GameCult.Caching.MessagePack.csproj" />
|
2026-09-11 23:23:20 +02:00
|
|
|
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
|
|
|
|
|
</ItemGroup>
|
|
|
|
|
</Project>
|