FirstModulAR 0.1.0
Loading...
Searching...
No Matches
FMAR.Comms.Air.ClientAirBroadcaster Class Reference

A component that broadcasts the client's air tank values over the network. More...

Inheritance diagram for FMAR.Comms.Air.ClientAirBroadcaster:
FMAR.Networking.FmarClientComponent FMAR.Internal.Inspectables.IInspectable

Public Member Functions

override void OnNetworkSpawn ()
 Called when the network object is spawned. Registers the broadcaster with the AirManager and initializes the air value.
 
override void OnNetworkDespawn ()
 Called when the network object is despawned. Unregisters the broadcaster from the AirManager and cleans up event handlers.
 
void RefillTank ()
 Refills the air tank to a full state. This is to be used only on the client with authority.
 
- Public Member Functions inherited from FMAR.Networking.FmarClientComponent
void Init (FmarClient client)
 

Properties

float AirRemaining [get]
 
List< InspectorRowInspectorRows [get]
 Gets the list of inspector widgets for this broadcaster.
 
- Properties inherited from FMAR.Networking.FmarClientComponent
FmarClient Client [get]
 
- Properties inherited from FMAR.Internal.Inspectables.IInspectable

Additional Inherited Members

- Protected Attributes inherited from FMAR.Networking.FmarClientComponent
FmarClient client
 

Detailed Description

A component that broadcasts the client's air tank values over the network.

Member Function Documentation

◆ OnNetworkDespawn()

override void FMAR.Comms.Air.ClientAirBroadcaster.OnNetworkDespawn ( )
inline

Called when the network object is despawned. Unregisters the broadcaster from the AirManager and cleans up event handlers.

◆ OnNetworkSpawn()

override void FMAR.Comms.Air.ClientAirBroadcaster.OnNetworkSpawn ( )
inline

Called when the network object is spawned. Registers the broadcaster with the AirManager and initializes the air value.

◆ RefillTank()

void FMAR.Comms.Air.ClientAirBroadcaster.RefillTank ( )
inline

Refills the air tank to a full state. This is to be used only on the client with authority.

Property Documentation

◆ AirRemaining

float FMAR.Comms.Air.ClientAirBroadcaster.AirRemaining
get

◆ InspectorRows

List<InspectorRow> FMAR.Comms.Air.ClientAirBroadcaster.InspectorRows
get

Gets the list of inspector widgets for this broadcaster.

Implements FMAR.Internal.Inspectables.IInspectable.


The documentation for this class was generated from the following file: