Skip to main content

QuestBoard

A class in Root.Township, the global namespace.

Networked board meant to show a quest's reward items on a trophy display. In this build the reward code only reads the SKU list and does nothing with it.

Constructors​

MemberWhat it is
QuestBoard()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

4 private and internal fields
MemberWhat it is
private GameAchievement activeQuestAchievement whose rewards the board shows.
private bool isSupporterBoardWhether the board shows the supporter-only rewards.
private bool reapplyBtnInspector button field that calls DebugApplyPlayerAndRewards.
private LocalPlayerAdvertisingTrophy rewardsDisplayTrophyTrophy display meant to show the rewards.

Methods​

MemberWhat it is
void DebugApplyPlayerAndRewards()Inspector button: runs ApplyPlayerAndRewards for the current player, or warns if there is none.
1 private and internal method
MemberWhat it is
private async void ApplyPlayerAndRewards(IPlayer player)Reads the normal or supporter-only reward SKUs for the quest; nothing else happens in this build.