Verse Library verse

02 Use Classes To Add New Fields Later

Extends player profile data to persistently save quest completion counts and historical quest logs.

extracted-snippets/documentation/fortnite/verse-persistence-best-practices/02-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
CompletedQuestCount:int = 0
QuestHistory:[]string = array{}

Comments

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