Class BlueprintCurrencyManager
- Namespace
- Root
- Assembly
- SPZGameAssembly.dll
public class BlueprintCurrencyManager
- Inheritance
-
objectBlueprintCurrencyManager
- Extension Methods
Constructors
BlueprintCurrencyManager(SerializedData, GameMode, ResearchShapeStorage, IShapeIdManager, ILogger)
public BlueprintCurrencyManager(BlueprintCurrencyManager.SerializedData data, GameMode mode, ResearchShapeStorage shapeStorage, IShapeIdManager shapeIdManager, ILogger logger)
Parameters
dataBlueprintCurrencyManager.SerializedDatamodeGameModeshapeStorageResearchShapeStorageshapeIdManagerIShapeIdManagerloggerILogger
Properties
BlueprintCurrency
public BlueprintCurrency BlueprintCurrency { get; }
Property Value
- BlueprintCurrency
OnBlueprintCurrencyChanged
public IEvent<BlueprintCurrency> OnBlueprintCurrencyChanged { get; }
Property Value
- IEvent<BlueprintCurrency>
TotalAmountSpent
public BlueprintCurrency TotalAmountSpent { get; }
Property Value
- BlueprintCurrency
Methods
AddBlueprintCurrency(BlueprintCurrency)
public void AddBlueprintCurrency(BlueprintCurrency amount)
Parameters
amountBlueprintCurrency
CanAfford(BlueprintCurrency)
public bool CanAfford(BlueprintCurrency amount)
Parameters
amountBlueprintCurrency
Returns
- bool
Dispose()
public void Dispose()
RegisterCommands(IDebugConsole)
public void RegisterCommands(IDebugConsole console)
Parameters
consoleIDebugConsole
Serialize()
public BlueprintCurrencyManager.SerializedData Serialize()
Returns
SetBlueprintCurrency(BlueprintCurrency)
public void SetBlueprintCurrency(BlueprintCurrency amount)
Parameters
amountBlueprintCurrency
TryTakeBlueprintCurrency(BlueprintCurrency)
public bool TryTakeBlueprintCurrency(BlueprintCurrency amount)
Parameters
amountBlueprintCurrency
Returns
- bool