File NetworkID.c
FileList > engine > src > gameframework > layers > Game2D > EntitySystem > NetworkID.c
Go to the source code of this file
#include "NetworkID.h"
Public Static Attributes
| Type | Name |
|---|---|
| int | gNetID = 0 |
Public Functions
| Type | Name |
|---|---|
| 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. |
Public Static Attributes Documentation
variable gNetID
int gNetID;
Public Functions Documentation
function NetID_DeserializedNewID
Call this when you deserialize a new net id sent from the server - games won't ever have to call it.
void NetID_DeserializedNewID (
int nextVal
)
Parameters:
nextVal
function NetID_GetID
Get a new net ID - the authoritative ID an entity has, assigned by the server but guessed by the client.
int NetID_GetID ()
Returns:
the network ID, assign to Entity2D::networkID
The documentation for this class was generated from the following file /home/runner/work/2DFarmingRPG/2DFarmingRPG/Stardew/engine/src/gameframework/layers/Game2D/EntitySystem/NetworkID.c