Wobbly Life Mod SDK
 
Loading...
Searching...
No Matches
ModWobblyLife.Network.ModConnection Struct Reference

Defines a connected player. More...

Public Member Functions

 ModConnection (object connection)
 
bool IsValid ()
 Returns whether this connection is valid.
 

Static Public Member Functions

static void Setup ()
 

Properties

int Id [get]
 Returns their unique id.
 
bool IsHost [get]
 Returns whether they are the host.
 
bool Me [get]
 Returns whether this is me.
 
string Name [get]
 Returns their player name.
 
bool Authenticated [get]
 Returns whether they have been authenticated i.e have the correct version of the game.
 
float LastMessageTime [get]
 Returns the last Time.time we recieved a packet from them.
 

Detailed Description

Defines a connected player.

Constructor & Destructor Documentation

◆ ModConnection()

ModWobblyLife.Network.ModConnection.ModConnection ( object  connection)

Member Function Documentation

◆ IsValid()

bool ModWobblyLife.Network.ModConnection.IsValid ( )

Returns whether this connection is valid.

Returns

◆ Setup()

static void ModWobblyLife.Network.ModConnection.Setup ( )
static

Property Documentation

◆ Authenticated

bool ModWobblyLife.Network.ModConnection.Authenticated
get

Returns whether they have been authenticated i.e have the correct version of the game.

◆ Id

int ModWobblyLife.Network.ModConnection.Id
get

Returns their unique id.

◆ IsHost

bool ModWobblyLife.Network.ModConnection.IsHost
get

Returns whether they are the host.

◆ LastMessageTime

float ModWobblyLife.Network.ModConnection.LastMessageTime
get

Returns the last Time.time we recieved a packet from them.

◆ Me

bool ModWobblyLife.Network.ModConnection.Me
get

Returns whether this is me.

◆ Name

string ModWobblyLife.Network.ModConnection.Name
get

Returns their player name.