Class ResearchPlayerLevelGoalManager
- Namespace
- Root
- Assembly
- SPZGameAssembly.dll
public class ResearchPlayerLevelGoalManager
- Inheritance
-
object
ResearchPlayerLevelGoalManager
- Extension Methods
-
Constructors
ResearchPlayerLevelGoalManager(SerializedData, ResearchUnlockProgressManager, ResearchCostManager, ResearchPlayerLevelManager, ResearchPlayerLevelConfig, ResearchShapeUnifier, IResearchUnlockManager, ShapeOperationStack, ShapeOperationPushPin, ShapeOperationCrystallize, IShapeRegistry, IShapeIdManager, GameMode)
public ResearchPlayerLevelGoalManager(ResearchPlayerLevelGoalManager.SerializedData data, ResearchUnlockProgressManager researchProgress, ResearchCostManager costManager, ResearchPlayerLevelManager playerLevel, ResearchPlayerLevelConfig config, ResearchShapeUnifier shapeUnifier, IResearchUnlockManager unlockManager, ShapeOperationStack shapeOperationStack, ShapeOperationPushPin shapeOperationPushPin, ShapeOperationCrystallize shapeOperationCrystallize, IShapeRegistry shapes, IShapeIdManager shapeIdManager, GameMode mode)
Parameters
data ResearchPlayerLevelGoalManager.SerializedData
researchProgress ResearchUnlockProgressManager
costManager ResearchCostManager
playerLevel ResearchPlayerLevelManager
config ResearchPlayerLevelConfig
shapeUnifier ResearchShapeUnifier
unlockManager IResearchUnlockManager
shapeOperationStack ShapeOperationStack
shapeOperationPushPin ShapeOperationPushPin
shapeOperationCrystallize ShapeOperationCrystallize
shapes IShapeRegistry
shapeIdManager IShapeIdManager
mode GameMode
Fields
NonRandomGoalLines
public readonly IReadOnlyList<IPlayerLevelGoalLine> NonRandomGoalLines
Field Value
- IReadOnlyList<IPlayerLevelGoalLine>
RandomGoalLines
public readonly IReadOnlyList<IPlayerLevelGoalLine> RandomGoalLines
Field Value
- IReadOnlyList<IPlayerLevelGoalLine>
Properties
GoalLineCount
public int GoalLineCount { get; }
Property Value
- int
GoalLineIds
public IEnumerable<PlayerLevelGoalId> GoalLineIds { get; }
Property Value
- IEnumerable<PlayerLevelGoalId>
GoalLines
public IEnumerable<IPlayerLevelGoalLine> GoalLines { get; }
Property Value
- IEnumerable<IPlayerLevelGoalLine>
OnChanged
public IEvent OnChanged { get; }
Property Value
- IEvent
OnLeveledUp
public IEvent<PlayerLevelGoalId, int> OnLeveledUp { get; }
Property Value
- IEvent<PlayerLevelGoalId, int>
RandomGoalLineCount
public int RandomGoalLineCount { get; }
Property Value
- int
Methods
CanLevelUp(PlayerLevelGoalId)
public bool CanLevelUp(PlayerLevelGoalId goalId)
Parameters
goalId PlayerLevelGoalId
Returns
- bool
CanLevelUpAny()
public bool CanLevelUpAny()
Returns
- bool
GetLevel(PlayerLevelGoalId)
public int GetLevel(PlayerLevelGoalId goalId)
Parameters
goalId PlayerLevelGoalId
Returns
- int
GetLine(PlayerLevelGoalId)
public IPlayerLevelGoalLine GetLine(PlayerLevelGoalId goalId)
Parameters
goalId PlayerLevelGoalId
Returns
- IPlayerLevelGoalLine
GetRandomGoalLineShape(int)
public ShapeId GetRandomGoalLineShape(int index)
Parameters
index int
Returns
- ShapeId
IsLocked(PlayerLevelGoalId)
public bool IsLocked(PlayerLevelGoalId goalId)
Parameters
goalId PlayerLevelGoalId
Returns
- bool
IsPlayerLevelShape(ShapeId)
public bool IsPlayerLevelShape(ShapeId shapeId)
Parameters
shapeId ShapeId
Returns
- bool
RegisterCommands(IDebugConsole)
public void RegisterCommands(IDebugConsole console)
Parameters
console IDebugConsole
Serialize()
public ResearchPlayerLevelGoalManager.SerializedData Serialize()
Returns
- ResearchPlayerLevelGoalManager.SerializedData
TryGetLine(PlayerLevelGoalId, out IPlayerLevelGoalLine)
public bool TryGetLine(PlayerLevelGoalId goalId, out IPlayerLevelGoalLine line)
Parameters
goalId PlayerLevelGoalId
line IPlayerLevelGoalLine
Returns
- bool
TryGetNextLevelCosts(PlayerLevelGoalId, out IReadOnlyList<IResearchCost>)
public bool TryGetNextLevelCosts(PlayerLevelGoalId goalId, out IReadOnlyList<IResearchCost> costs)
Parameters
goalId PlayerLevelGoalId
costs IReadOnlyList<IResearchCost>
Returns
- bool
TryLevelUp(PlayerLevelGoalId)
public bool TryLevelUp(PlayerLevelGoalId goalId)
Parameters
goalId PlayerLevelGoalId
Returns
- bool