PracticeObjectFader
A class in Root.Township, the global namespace.
A practice object at a skill shrine test area that fades in and out. Syncs which test area it belongs to, and on clients stops the fade and shows fully once docked.
- Listed in Global namespace: P
- Inherits or implements
FadeInOutNetworkEntity,INetworkEntityBehaviour
Constructors
| Member | What it is |
|---|---|
PracticeObjectFader() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
2 private and internal fields
| Member | What it is |
|---|---|
private Pickup pickup | The pickup on this object. |
private MethodSync syncShrine | Sync for the test area. |
Methods
| Member | What it is |
|---|---|
override void RegisterTestingArea(SkillShrineTestingArea testingArea) | Links the object to a test area. On the server, also sends it to clients. |
protected override void Awake() | Client: hooks the pickup's Docked event. |
7 private and internal methods
| Member | What it is |
|---|---|
private void ForceFinish(Interactor arg1, Pickup arg2, PickupDock arg3) | Stops any fade and shows the object fully. |
private void Alta.Networking.INetworkEntityBehaviour.Initialize() | Sets up the test area sync. |
private void Alta.Networking.INetworkEntityBehaviour.InitializeAsServer(SpawnData spawnData) | Does nothing. |
private void Alta.Networking.INetworkEntityBehaviour.OnConnected(Player player) | Server: sends the test area to a joining player. |
private void OnDestroy() | Unhooks from the test area's orb event. |
private void Alta.Networking.INetworkEntityBehaviour.OnDisconnected(Player player) | Does nothing. |
private void SyncShrine(IPlayer player, Stream stream) | Sends or reads the test area's entity id; clients wait for it to spawn and register it. |