Skip to main content

Arrow.ArrowFlightSync

A private struct in Root.Township, the global namespace. Reach it through att-stubs' publicized assemblies or Harmony's AccessTools.

Message the server sends to chunks when an arrow starts its flight, so clients simulate the same random deviance.

Constructors​

MemberWhat it is
ArrowFlightSync(float speed, int seed)Creates an Arrow.ArrowFlightSync from speed and seed.

Fields​

MemberWhat it is
float flightSpeedArrow launch speed, sent from 0 to 1000 at 0.01 precision.
int randomSeedSeed for the arrow's deviance random state.

Methods​

1 private and internal method
MemberWhat it is
internal void Serialize(Stream stream)Reads or writes the seed and speed. The seed is sent with a range of -1 up, while the server picks seeds across the whole int range, so negative seeds probably don't arrive intact.

Used in​

Members of other types that take, return or hold a ArrowFlightSync: