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.
- Listed in Global namespace: A to B
- Nested in
Arrow
Constructors
| Member | What it is |
|---|---|
ArrowFlightSync(float speed, int seed) | Creates an Arrow.ArrowFlightSync from speed and seed. |
Fields
| Member | What it is |
|---|---|
float flightSpeed | Arrow launch speed, sent from 0 to 1000 at 0.01 precision. |
int randomSeed | Seed for the arrow's deviance random state. |
Methods
1 private and internal method
| Member | What 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: