Module Photon.SNet
Regular Simplified Networking.
Easily optimise networking for setting local values on entities.
Info:
- Copyright: Photon Team
- Release: development
- Author: Photon Team
Functions
Map(The[, extra]) | Add a network mapping, with a name and type. |
Set(ent, val) | Change a networked entity variable. |
Get(ent) | Get the latest cached version of a value on an entity. |
Functions
Methods- Map(The[, extra])
-
Add a network mapping, with a name and type.
Adds NET:Set
to set the value on an entity and Get . Parameters:
- The
integer
NET.
enum to use. - extra Any extra data required for a type. (optional)
- The
integer
NET.
- Set(ent, val)
-
Change a networked entity variable.
Warnings:
-
name must be pre-registed with NET:Map
Internal:
-
This function is internal. Whilst you can call it, you probably shouldn't.
Parameters:
- ent Entity The entity to change the value on.
- val Value to set.
- Get(ent)
-
Get the latest cached version of a value on an entity.
Parameters:
- ent Entity The entity to change the value on.