|
Enfusion Script API
|
[World controller example] More...
Public Member Functions | |
| void | RequestNameChange (string newPlayerName) |
Public Member Functions inherited from WorldController | |
| proto external World | GetWorld () |
| proto external WorldSystems | GetSystems () |
| proto external RplNode | GetNode () |
| proto external bool | IsMyOwn () |
| proto external PlayerId | GetOwnerPlayerId () |
| Returns PlayerId of the player who owns this controller. | |
| proto external UUID | GetOwnerIdentityId () |
| Returns Identity Id of the player who owns this controller. | |
| proto external RplIdentity | GetOwnerRplIdentity () |
| Returns RplIdentity of the player who owns this controller if it is available. | |
| proto external WorldSystem | FindSystem (TypeName interfaceType) |
| proto external BaseContainer | FindSystemSource (TypeName interfaceType) |
Public Member Functions inherited from Managed | |
| proto external ref Managed | Clone () |
| Return shallow copy of object, or null if it is not allowed (not public constructor) | |
Static Public Member Functions | |
| static override void | InitInfo (WorldControllerInfo outInfo) |
Static Public Member Functions inherited from EventProvider | |
| static proto bool | ConnectEvent (func eventSender, func eventReceiver) |
| Connects receiver callback to provider event. | |
| static proto bool | ConnectEventFiltered (func eventSender, func eventReceiver, void filter) |
| Connects receiver callback to provider event. | |
| static proto bool | DisconnectEvent (func eventSender, func eventReceiver) |
| Disconnect single event connection. | |
| static proto bool | DisconnectEventFiltered (func eventSender, func eventReceiver, void filter) |
| Disconnect single event connection. | |
| static proto bool | DisconnectEvents (EventProvider provider, Managed receiver) |
| Disconnect all connections between provider and receiver. | |
Public Attributes | |
| string | m_PlayerName |
Protected Member Functions | |
| override void | OnAuthorityReady () |
Protected Member Functions inherited from WorldController | |
| proto void | Rpc (func method, void p0=NULL, void p1=NULL, void p2=NULL, void p3=NULL, void p4=NULL, void p5=NULL, void p6=NULL, void p7=NULL) |
| Attempts to run a remote procedure call (RPC) of this instance with parameters specified in method RplRpc attribute. | |
| void | OnAuthorityClosing () |
Protected Member Functions inherited from EventProvider | |
| proto external void | ThrowEvent (func eventSender, void param1=null, void param2=null, void param3=null, void param4=null, void param5=null, void param6=null, void param7=null, void param8=null, void param9=null) |
| Emit event on provider. | |
|
static |
Implements WorldController.
|
protected |
Implements WorldController.
| void PlayerNameInputController.RequestNameChange | ( | string | newPlayerName | ) |
| string PlayerNameInputController.m_PlayerName |