public sealed class NetworkAudioSourceReplicatorPuts a sound's state on the wire.
No guide page documents this yet — the page shows what the code says about itself.
Fields and properties (9)
public static QuantizeRange GainRangeThe range a replicated gain lives in.
public static QuantizeRange PitchRangeThe range a replicated pitch lives in.
public ComponentTypeId ComponentTypeWhich component this replicates.
public uint TypeIdThe id this type has on the wire: a hash of its full name, computed at build time.
public string TypeNameThe name, for diagnostics and for the bandwidth attribution panel.
public Channel ChannelReliable, because starting and stopping do not repeat.
public int PriorityBelow motion. A sound that is a tick late is a sound nobody notices is late.
public QueryDescription ChangedQueryA query matching entities with this component, filtered on it having changed.
public ReadOnlySpan<WireLane> LanesThe fixed-width fields Write produces, in the order it produces them.
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 (1)
- NetworkAudioTestsVixen.Net.Audio.Tests