Vixen
02b45cc4
csharp
public record class ShardCandidate

A shard as placement sees it: a few numbers, and no roster.

Read the guide page for this →

Remarks

⚠ The affinity counts are inputs, not something this layer computes. Which of a player's friends are on a shard is a question only the thing holding the fleet's roster can answer — IMapGrain — and asking it here would make the scoring function need a database. So the grain counts and the director scores, which is what makes the scoring a pure function that a property test can hammer a million times.

Age rather than a start time, so that a test does not have to construct a clock to say "this shard is old".

Fields and properties (14)

  • public ShardId Shard

    Which shard.

  • public ShardKey Key

    What it is for.

  • public ShardState State

    Where it is in its life. Only Ready is placeable.

  • public RealmEndpoint Endpoint

    Where clients reach it.

  • public int Population

    How many are on it.

  • public ShardCapacity Capacity

    How many it will take.

  • public TimeSpan Age

    How long it has been up.

  • public ShardKind Kind

    Who is admitted.

  • public bool Admits

    Whether this shard's access list admits the requester — always true for a public one.

  • public int PartyMembers

    How many of the requester's party are already here.

  • public int GuildMembers

    How many of their guild.

  • public int Friends

    How many of their friends.

  • public string Locale

    The language most of this shard is speaking.

  • public double FillPercent

    How full it is, as a percentage of its soft cap.

Methods (1)

  • public override string ToString()

    Returns a string that represents the current object.

Used by (7)

  • FleetSimulationVixen.Live.Orchestrator.Tests
  • MapCoordinatorVixen.Live.Orchestrator
  • MapFleetVixen.Live.Orchestrator
  • MapFleetTestsVixen.Live.Orchestrator.Tests
  • PlacementDirectorVixen.Live.Orchestrator
  • PlacementDirectorTestsVixen.Live.Orchestrator.Tests
  • PlacementWeightsTestsVixen.Live.Orchestrator.Tests