Skip to content

Class: ChoiceShrine ​

csharp
public abstract class ChoiceShrine : Shrine, ILogicUpdate, ICleanup, ICustomDestroyRoutine, IInteractable, IProp, IBanRoomNodesNearby

Fields ​

NameDeclarationDescription
choices`[SaveVar(SaveVarFlags.Default)]
public readonly SyncDictionary<string, ChoiceShrineItem[]> choices`
ClientEvent_OnChoicesUpdatedpublic SafeAction ClientEvent_OnChoicesUpdated
itemCountpublic int itemCount
onItemsPopulatedpublic SafeAction&lt;DewPlayer&gt; onItemsPopulatedCalled on server.

Methods ​

Awake() ​

csharp
protected override void Awake()

CmdChoose(int, NetworkConnectionToClient) ​

csharp
public void CmdChoose(int index, NetworkConnectionToClient sender = null)

Parameters:

NameTypeDescription
indexint
senderMirror.NetworkConnectionToClient

OnCreate() ​

csharp
protected override void OnCreate()

OnDestroyActor() ​

csharp
protected override void OnDestroyActor()

OnPopulateChoices(DewPlayer) ​

csharp
protected abstract void OnPopulateChoices(DewPlayer player)

Parameters:

NameTypeDescription
playerDewPlayer

OnUse(Entity) ​

csharp
protected override bool OnUse(Entity entity)

Parameters:

NameTypeDescription
entityEntity

Returns: bool

PopulatePlayerChoices(DewPlayer) ​

csharp
public void PopulatePlayerChoices(DewPlayer player)

Parameters:

NameTypeDescription
playerDewPlayer

Maintained by the Shape of Dreams Modding Community