Players module for FrameworkZ. Defines and interacts with PLAYER object.
More...
|
| void | CreateCharacter (username, characterData, characterID) |
| |
| void | DeleteCharacter (username, character) |
| |
| void | DeleteCharacterByID (username, characterID) |
| |
| void | Destroy (username) |
| |
| table | GetCharacterDataByID (username, characterID) |
| | Gets saved character data by their ID.
|
| |
| void | GetLoadedCharacterByID (username) |
| |
| void | GetNextCharacterID (username) |
| |
| object | GetPlayerByID (username) |
| | Gets the player object by their username.
|
| |
| void | Initialize (isoPlayer) |
| |
| void | LoadCharacter (_data, username, characterID) |
| |
| void | LoadCharacter (username, characterData, survivorDescriptor, loadCharacterStartTime) |
| |
| void | LoadCharacterByID (username, characterID) |
| |
| void | New (isoPlayer) |
| |
| void | OnCreateCharacter (data, username, characterData) |
| |
| void | OnFillWorldObjectContextMenu (playerNumber, context, worldObjects, test) |
| |
| void | OnInitGlobalModData (isNewGame) |
| |
| void | OnLoadCharacter (data, characterID) |
| |
| void | OnLoadCharacter (username, characterID) |
| |
| void | OnPostLoadCharacter (isoPlayer, player, character, characterData) |
| |
| void | OnPreLoadCharacter (isoPlayer, player, character, characterData) |
| |
| void | OnStorageSet (isoPlayer, command, namespace, keys, value) |
| |
| void | ResetCharacterSaveInterval () |
| |
| boolean | Save (username, continueOnFailure) |
| | Saves the player and their currently loaded character.
|
| |
| void | SaveCharacter (username, character) |
| |
| void | SaveCharacterByID (username, characterID) |
| |
| void | StartPlayerTick (player) |
| |
Players module for FrameworkZ. Defines and interacts with PLAYER object.
Definition at line 13 of file Players.lua.
◆ CreateCharacter()
| void CreateCharacter |
( |
username | , |
|
|
characterData | , |
|
|
characterID | ) |
◆ DeleteCharacter()
◆ DeleteCharacterByID()
◆ Destroy()
◆ GetCharacterDataByID()
| table GetCharacterDataByID |
( |
username | , |
|
|
characterID | ) |
Gets saved character data by their ID.
- Parameters
-
| username | string The username of the player. |
| characterID | integer The ID of the character. |
- Returns
- table or boolean The character data or false if the data failed to be retrieved.
◆ GetLoadedCharacterByID()
◆ GetNextCharacterID()
◆ GetPlayerByID()
Gets the player object by their username.
- Parameters
-
| username | string The username of the player. |
- Returns
- object or boolean The player object or false if the player was not found.
◆ Initialize()
◆ LoadCharacter() [1/2]
◆ LoadCharacter() [2/2]
| void LoadCharacter |
( |
username | , |
|
|
characterData | , |
|
|
survivorDescriptor | , |
|
|
loadCharacterStartTime | ) |
◆ LoadCharacterByID()
◆ New()
◆ OnCreateCharacter()
◆ OnFillWorldObjectContextMenu()
| void OnFillWorldObjectContextMenu |
( |
playerNumber | , |
|
|
context | , |
|
|
worldObjects | , |
|
|
test | ) |
◆ OnInitGlobalModData()
| void OnInitGlobalModData |
( |
isNewGame | | ) |
|
◆ OnLoadCharacter() [1/2]
| void OnLoadCharacter |
( |
data | , |
|
|
characterID | ) |
◆ OnLoadCharacter() [2/2]
◆ OnPostLoadCharacter()
◆ OnPreLoadCharacter()
◆ OnStorageSet()
◆ ResetCharacterSaveInterval()
| void ResetCharacterSaveInterval |
( |
| ) |
|
◆ Save()
| boolean Save |
( |
username | , |
|
|
continueOnFailure | ) |
Saves the player and their currently loaded character.
- Parameters
-
| username | string The username of the player. |
| continueOnFailure | boolean (Optional) Whether or not to continue saving either the player or character if either should fail. Default = false. True not recommended. |
- Returns
- boolean Whether or not the player was successfully saved.
-
string The failure message if the player or character failed to save.
◆ SaveCharacter()
◆ SaveCharacterByID()
◆ StartPlayerTick()
◆ Admin
| FrameworkZ::Players::Admin |
◆ List
List of all instanced players in the game.
Definition at line 18 of file Players.lua.
◆ Moderator
| FrameworkZ::Players::Moderator |
◆ Operator
| FrameworkZ::Players::Operator |
◆ Owner
| FrameworkZ::Players::Owner |
◆ Players
◆ Roles
◆ Super_Admin
| FrameworkZ::Players::Super_Admin |
◆ User
| FrameworkZ::Players::User |
The documentation for this class was generated from the following file: