Remove the Eve surface from Ymir.Core (parked at parked/ymir-eve-surface)
Eve is deprecated; per thing2:ruling:eve-dashboards-quarantined the surface builders, EveSurfaceDocument publication, GameCult.Eve.Surface reference and EveRoot are gone. YmirOperatorStateDocument and its publication stay. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
4945968e96
commit
21e7c43777
5 changed files with 7 additions and 90 deletions
|
|
@ -1,15 +1,9 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<EveRoot Condition="'$(EveRoot)' == ''">$(MSBuildThisFileDirectory)..\..\..\Eve</EveRoot>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Ymir.Box3D\Ymir.Box3D.csproj" />
|
||||
<ProjectReference Include="$(CultLibRoot)\src\GameCult.Caching\GameCult.Caching.csproj" />
|
||||
<ProjectReference Include="$(CultLibRoot)\src\GameCult.Caching.MessagePack\GameCult.Caching.MessagePack.csproj" />
|
||||
<ProjectReference Include="$(EveRoot)\packages\org.gamecult.eve.surface\GameCult.Eve.Surface.csproj"
|
||||
AdditionalProperties="CultLibRoot=$(CultLibRoot)" />
|
||||
<ProjectReference Include="$(CultLibRoot)\packages\cultmath\src\CultMath\CultMath.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
using GameCult.Caching;
|
||||
using GameCult.Caching.MessagePack;
|
||||
using GameCult.Eve.Surface;
|
||||
using MessagePack;
|
||||
|
||||
namespace Ymir.Core;
|
||||
|
|
@ -91,8 +90,7 @@ public static class YmirServicePublication
|
|||
"Box3D-backed circle overlap and cast queries over submitted bodies",
|
||||
"deterministic result ordering",
|
||||
"checksummed replay checkpoint reconstruction bound to the pinned native build",
|
||||
"CultCache world snapshot v2 with explicit v1/v0 read migration",
|
||||
"diagnostic Eve publication"
|
||||
"CultCache world snapshot v2 with explicit v1/v0 read migration"
|
||||
],
|
||||
DoesNotOwn =
|
||||
[
|
||||
|
|
@ -121,31 +119,11 @@ public static class YmirServicePublication
|
|||
UpdatedAtUtc = FormatUtc(now)
|
||||
};
|
||||
|
||||
public static EveSurfaceDocument EveSurface(YmirOperatorStateDocument diagnostics) =>
|
||||
GameCult.Eve.Surface.EveSurface.Create("ymir.physics.operator")
|
||||
.Provider(diagnostics.ProviderId, "physics.operator")
|
||||
.Title("Ymir Physics")
|
||||
.UpdatedAtUtc(diagnostics.UpdatedAtUtc)
|
||||
.RootColumn("ymir.physics.operator.root", root => root
|
||||
.Metric("ymir.physics.operator.status", "Status", diagnostics.Status)
|
||||
.Metric("ymir.physics.operator.owner", "State owner", diagnostics.StateOwner)
|
||||
.Metric("ymir.physics.operator.math", "Numeric substrate", diagnostics.NumericSubstrate)
|
||||
.Metric("ymir.physics.operator.batch", "Batch kernel", diagnostics.BatchKernel)
|
||||
.Metric("ymir.physics.operator.persistence", "Persistence", diagnostics.Persistence))
|
||||
.Build();
|
||||
|
||||
public static EveSurfaceDocument EveSurface(DateTimeOffset now)
|
||||
{
|
||||
return EveSurface(OperatorState(now));
|
||||
}
|
||||
|
||||
private static string FormatUtc(DateTimeOffset value) => value.UtcDateTime.ToString("O");
|
||||
}
|
||||
|
||||
public static class YmirServicePublicationStore
|
||||
{
|
||||
public const string SurfaceRecordKey = "surface:ymir.physics.operator";
|
||||
|
||||
public static async Task RegenerateDerivedStoreAsync(string path, DateTimeOffset now)
|
||||
{
|
||||
DeleteDerivedStore(path);
|
||||
|
|
@ -174,10 +152,6 @@ public static class YmirServicePublicationStore
|
|||
operatorState,
|
||||
new CultRecordHandle<YmirOperatorStateDocument>(new CultRecordKey("ymir:operator:ymir.physics")))
|
||||
.ConfigureAwait(false);
|
||||
await cache.UpsertAsync(
|
||||
YmirServicePublication.EveSurface(operatorState),
|
||||
new CultRecordHandle<EveSurfaceDocument>(new CultRecordKey(SurfaceRecordKey)))
|
||||
.ConfigureAwait(false);
|
||||
await cache.FlushAsync().ConfigureAwait(false);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue