Stardew Engine
Loading...
Searching...
No Matches
NetworkID.c File Reference
#include "NetworkID.h"
Include dependency graph for NetworkID.c:

Functions

void NetID_DeserializedNewID (int nextVal)
 Call this when you deserialize a new net id sent from the server - games won't ever have to call it.
 
int NetID_GetID ()
 Get a new net ID - the authoritative ID an entity has, assigned by the server but guessed by the client.
 

Function Documentation

◆ NetID_DeserializedNewID()

void NetID_DeserializedNewID ( int  nextVal)

Call this when you deserialize a new net id sent from the server - games won't ever have to call it.

Parameters
nextVal

◆ NetID_GetID()

int NetID_GetID ( )

Get a new net ID - the authoritative ID an entity has, assigned by the server but guessed by the client.

Returns
the network ID, assign to Entity2D::networkID