Vixen
02b45cc4
csharp
public record class PlacementRequest

Somebody asking to be put somewhere. Doc 27 § Placement.

Read the guide page for this →

Remarks

Everything the megaserver weighs, and nothing it does not. The three social terms arrive as identities rather than as counts because it is the candidate that knows how many of them are already on it — see ShardCandidate — and the split is what keeps PlacementDirector a pure function of numbers.

⚠ CameFrom is what makes a transfer stick. A player who has just been moved off a shard scores −5 000 against going back to it, which is more than a guild and every friend they have put together. Without it a drain and a placement disagree politely with each other for as long as the player is patient.

Fields and properties (6)

  • public PlayerKey Player

    Who is asking.

  • public ShardKey Key

    The map, region and version they may be placed on. Every hard filter is this value.

  • public Guid Party

    Their party, or Empty.

  • public Guid Guild

    Their guild, or Empty.

  • public string Locale

    Their language tag — en-GB, de. Compared verbatim, never interpreted.

  • public ShardId CameFrom

    The shard they were just moved off, if any.

Methods (1)

  • public override string ToString()

    Returns a string that represents the current object.

Used by (5)

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