Verse Library verse

01 Use Classes To Add New Fields Later

Defines a persistable class for saving player class, experience points, and rank data across sessions.

extracted-snippets/documentation/fortnite/verse-persistence-best-practices/01-use-classes-to-add-new-fields-later.verse

# Source URL: https://dev.epicgames.com/documentation/fortnite/verse-persistence-best-practices
# Local doc:  epic-docs/documentation/fortnite/verse-persistence-best-practices.md
# Section:    Use Classes to Add New Fields Later
player_profile_data := class<final><persistable>:
Class:player_class = player_class.Villager
XP:int = 0
Rank:int = 0

Comments

    Sign in to vote, comment, or suggest an edit. Sign in