Skip to main content

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.

Constructors​

MemberWhat it is
PracticeObjectFader()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

2 private and internal fields
MemberWhat it is
private Pickup pickupThe pickup on this object.
private MethodSync syncShrineSync for the test area.

Methods​

MemberWhat 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
MemberWhat 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.