Class TutorialState
- Namespace
- Root
- Assembly
- SPZGameAssembly.dll
public class TutorialState : ITutorialState, ITutorialStateReadAccess, ITutorialStateWriteAccess
- Inheritance
-
objectTutorialState
- Implements
- Extension Methods
Constructors
TutorialState()
public TutorialState()
Properties
CompletedEntryIds
public IEnumerable<TutorialEntryId> CompletedEntryIds { get; }
Property Value
- IEnumerable<TutorialEntryId>
CompletedFlags
public IEnumerable<TutorialFlag> CompletedFlags { get; }
Property Value
- IEnumerable<TutorialFlag>
CurrentPlacement
public BuiltinPlacementOfInterest CurrentPlacement { get; }
Property Value
InteractedPlacers
public IEnumerable<SerializedPlacerId> InteractedPlacers { get; }
Property Value
- IEnumerable<SerializedPlacerId>
InteractionStateChanged
public IEvent InteractionStateChanged { get; }
Property Value
OnCompletionStateChanged
public IEvent OnCompletionStateChanged { get; }
Property Value
Methods
Deserialize(TutorialStateSerializedData)
public void Deserialize(TutorialStateSerializedData data)
Parameters
IsEntryCompleted(TutorialEntryId)
public bool IsEntryCompleted(TutorialEntryId id)
Parameters
Returns
- bool
IsFlagCompleted(TutorialFlag)
public bool IsFlagCompleted(TutorialFlag flag)
Parameters
flagTutorialFlag
Returns
- bool
MarkPlacerAsInteracted(SerializedPlacerId)
public void MarkPlacerAsInteracted(SerializedPlacerId interactedPlacer)
Parameters
interactedPlacerSerializedPlacerId
Reset()
public void Reset()
Serialize()
public TutorialStateSerializedData Serialize()
Returns
TryCompleteEntry(TutorialEntryId)
public bool TryCompleteEntry(TutorialEntryId id)
Parameters
Returns
- bool
TryCompleteFlag(TutorialFlag)
public bool TryCompleteFlag(TutorialFlag flag)
Parameters
flagTutorialFlag
Returns
- bool
TryUncompleteEntry(TutorialEntryId)
public bool TryUncompleteEntry(TutorialEntryId id)
Parameters
Returns
- bool
TryUncompleteFlag(TutorialFlag)
public bool TryUncompleteFlag(TutorialFlag flag)
Parameters
flagTutorialFlag
Returns
- bool
UpdateCurrentPlacement(BuiltinPlacementOfInterest)
public void UpdateCurrentPlacement(BuiltinPlacementOfInterest placementOfInterest)
Parameters
placementOfInterestBuiltinPlacementOfInterest