Vixen
02b45cc4
csharp
public sealed class NetworkTransformReplicator

Replicates NetworkTransform.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

Written by hand rather than generated, because the component ships with the engine and the engine's own package does not run the generator over itself. It is also the worked example the IComponentReplicator documentation promises: a rotation in 32 bits, a position in 48, and a teleport counter in 8.

Fields and properties (9)

  • public const int PositionBits

    How many bits each position axis costs.

  • public static QuantizeRange PositionRange

    The range positions are quantized into: ±1000 metres, to three centimetres.

  • public ComponentTypeId ComponentType

    Which component this replicates.

  • public uint TypeId

    The id this type has on the wire: a hash of its full name, computed at build time.

  • public string TypeName

    The name, for diagnostics and for the bandwidth attribution panel.

  • public Channel Channel

    How to send it.

  • public int Priority

    Ahead of most things when the budget runs out: a wrong position is visible and a late score is not.

  • public QueryDescription ChangedQuery

    A query matching entities with this component, filtered on it having changed.

  • public ReadOnlySpan<WireLane> Lanes

Methods (3)

  • public bool Has(World world, Entity entity)

    Whether an entity has this component at all.

  • public void Write(World world, Entity entity, ref BitWriter writer)

    Encodes an entity's component.

  • public bool Apply(World world, Entity entity, ref BitReader reader)

    Decodes a component and puts it on an entity, adding it if it is not there.

Used by (14)

  • GameClientMultiplayer
  • GameServerMultiplayer
  • LocalMatchMultiplayer
  • SoakNetworkSoak
  • BitExactnessTestsVixen.Net.Tests
  • DeltaCodecTargetVixen.Net.Fuzz
  • DeltaTestsVixen.Net.Tests
  • DiagnosticsTestsVixen.Net.Tests
  • MotionTestsVixen.Net.Tests
  • NetworkSpawnTestsVixen.Net.Engine.Tests
  • PredictedPlayerMovementTestsVixen.Net.Physics.Tests
  • SnapshotInspectorTargetVixen.Net.Fuzz
  • SnapshotSeedsVixen.Net.Fuzz
  • SnapshotTargetVixen.Net.Fuzz