Quantum Engineering
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
NetworkSend Class Reference

Public Member Functions

 NetworkSend (NetworkController networkController)
 Network functions for multiplayer games. More...
 
void SendChatMessage (string message)
 Sends a chat message to the server. More...
 
void SendPlayerInfo ()
 Sends player name, location and color to the server. More...
 
IEnumerator SendConduitData (Vector3 pos, int range)
 Sends conduit range to the server when changed by the player. More...
 
IEnumerator SendMachineData (Vector3 pos, int speed)
 Sends machine speed to the server when changed by the player. More...
 
IEnumerator SendHubData (Vector3 pos, int circuit, int range, bool stop, float stopTime)
 Sends rail cart hub data to the server when changed by the player. More...
 
IEnumerator SendNetworkStorage ()
 Sends inventory data to the server. More...
 
IEnumerator SendPowerData (Vector3 pos, int range, bool dual)
 Sends power conduit data to the server. More...
 
IEnumerator SendPaintData (string block, float red, float green, float blue)
 Sends painted block colors to the sever. More...
 

Public Attributes

bool sentNetworkStorage
 

Private Member Functions

string GetExternalAddress ()
 Gets external IP address for online games. More...
 

Private Attributes

NetworkController networkController
 
PlayerController playerController
 
string serverURL
 
bool conduitCoroutineBusy
 
bool machineCoroutineBusy
 
bool paintCoroutineBusy
 
bool hubCoroutineBusy
 
string playerRed
 
string playerGreen
 
string playerBlue
 

Constructor & Destructor Documentation

◆ NetworkSend()

NetworkSend.NetworkSend ( NetworkController  networkController)
inline

Network functions for multiplayer games.

Member Function Documentation

◆ GetExternalAddress()

string NetworkSend.GetExternalAddress ( )
inlineprivate

Gets external IP address for online games.

◆ SendChatMessage()

void NetworkSend.SendChatMessage ( string  message)
inline

Sends a chat message to the server.

◆ SendConduitData()

IEnumerator NetworkSend.SendConduitData ( Vector3  pos,
int  range 
)
inline

Sends conduit range to the server when changed by the player.

◆ SendHubData()

IEnumerator NetworkSend.SendHubData ( Vector3  pos,
int  circuit,
int  range,
bool  stop,
float  stopTime 
)
inline

Sends rail cart hub data to the server when changed by the player.

◆ SendMachineData()

IEnumerator NetworkSend.SendMachineData ( Vector3  pos,
int  speed 
)
inline

Sends machine speed to the server when changed by the player.

◆ SendNetworkStorage()

IEnumerator NetworkSend.SendNetworkStorage ( )
inline

Sends inventory data to the server.

◆ SendPaintData()

IEnumerator NetworkSend.SendPaintData ( string  block,
float  red,
float  green,
float  blue 
)
inline

Sends painted block colors to the sever.

◆ SendPlayerInfo()

void NetworkSend.SendPlayerInfo ( )
inline

Sends player name, location and color to the server.

◆ SendPowerData()

IEnumerator NetworkSend.SendPowerData ( Vector3  pos,
int  range,
bool  dual 
)
inline

Sends power conduit data to the server.

Member Data Documentation

◆ conduitCoroutineBusy

bool NetworkSend.conduitCoroutineBusy
private

◆ hubCoroutineBusy

bool NetworkSend.hubCoroutineBusy
private

◆ machineCoroutineBusy

bool NetworkSend.machineCoroutineBusy
private

◆ networkController

NetworkController NetworkSend.networkController
private

◆ paintCoroutineBusy

bool NetworkSend.paintCoroutineBusy
private

◆ playerBlue

string NetworkSend.playerBlue
private

◆ playerController

PlayerController NetworkSend.playerController
private

◆ playerGreen

string NetworkSend.playerGreen
private

◆ playerRed

string NetworkSend.playerRed
private

◆ sentNetworkStorage

bool NetworkSend.sentNetworkStorage

◆ serverURL

string NetworkSend.serverURL
private

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