PlayerData
Jump To Parameters
Jump To Function Definitions
Parameter Definitions
Select the parameter name from below to jump directly to it on this page.
character
characterName
ground
health
inventory
jump
roll
stamina
character
The actual gameobject name of this character.
| Exposed Value | Type | Default Value |
|---|---|---|
| public | string | ”” |
characterName
The nickname of your the photon room.
| Exposed Value | Type | Default Value |
|---|---|---|
| public | string | ”” |
ground
All of the group settings on this character.
| Exposed Value | Type | Default Value |
|---|---|---|
| public | PlayerGrounded | new PlayerGrounded() |
health
All of the health data related to this character.
| Exposed Value | Type | Default Value |
|---|---|---|
| public | PlayerHealth | new PlayerHealth() |
inventory
The inventory data from this characters inventory.
| Exposed Value | Type | Default Value |
|---|---|---|
| public | PlayerInventory | new PlayerInventory() |
jump
All of the jump settings on this character.
| Exposed Value | Type | Default Value |
|---|---|---|
| public | PlayerJump | new PlayerJump() |
roll
All of the roll settings on this character.
| Exposed Value | Type | Default Value |
|---|---|---|
| public | PlayerRoll | new PlayerRoll() |
stamina
All of the stamina data related to this character.
| Exposed Value | Type | Default Value |
|---|---|---|
| public | PlayerStamina | new PlayerStamina() |
Function Definitions
Select the function name from below to jump directly to it on this page.
public PlayerData(vThirdPersonController controller)
Takes a simple character controller inputs and extracts all of the following information from that character: health info, stamina info, roll settings, jump settings, group settings, and inventory data. It will then save that information into easily serializable classes that can be stored into a binary file. It’s all self contained within this class.
| Expose Value | Overrideable | Returns |
|---|---|---|
| private | False | Does not return anything |
| Parameter Name | Description |
|---|---|
| controller | The vThirdPersonController to scan |