Class ResearchShapeStorage
- Namespace
- Root
- Assembly
- SPZGameAssembly.dll
public class ResearchShapeStorage
- Inheritance
-
objectResearchShapeStorage
- Extension Methods
Constructors
ResearchShapeStorage(SerializedData, IResearchShapeUnifier, IShapeIdManager, ILogger)
public ResearchShapeStorage(ResearchShapeStorage.SerializedData data, IResearchShapeUnifier shapeUnifier, IShapeIdManager shapeIdManager, ILogger logger)
Parameters
dataResearchShapeStorage.SerializedDatashapeUnifierIResearchShapeUnifiershapeIdManagerIShapeIdManagerloggerILogger
Properties
OnDelivered
public IEvent<UnifiedShapeId, ulong> OnDelivered { get; }
Property Value
- IEvent<UnifiedShapeId, ulong>
ShapeAmountChangedHooks
public IReadOnlyShapeHooks ShapeAmountChangedHooks { get; }
Property Value
ShapeDeliverHooks
public IReadOnlyShapeHooks ShapeDeliverHooks { get; }
Property Value
StoredShapes
public IReadOnlyDictionary<UnifiedShapeId, ulong> StoredShapes { get; }
Property Value
- IReadOnlyDictionary<UnifiedShapeId, ulong>
Methods
Add(ShapeId, ulong)
public void Add(ShapeId id, ulong amount)
Parameters
idShapeIdamountulong
Add(ShapeId, ulong, out UnifiedShapeId)
public void Add(ShapeId id, ulong amount, out UnifiedShapeId unifiedId)
Parameters
idShapeIdamountulongunifiedIdUnifiedShapeId
CanAfford(ShapeId, ulong)
public bool CanAfford(ShapeId id, ulong amount)
Parameters
idShapeIdamountulong
Returns
- bool
Dispose()
public void Dispose()
GetAmount(ShapeId)
public ulong GetAmount(ShapeId id)
Parameters
idShapeId
Returns
- ulong
GetAmount(UnifiedShapeId)
public ulong GetAmount(UnifiedShapeId unifiedId)
Parameters
unifiedIdUnifiedShapeId
Returns
- ulong
RegisterCommands(IDebugConsole)
public void RegisterCommands(IDebugConsole console)
Parameters
consoleIDebugConsole
Serialize()
public ResearchShapeStorage.SerializedData Serialize()
Returns
TryTake(ShapeId, ulong)
public bool TryTake(ShapeId id, ulong amount)
Parameters
idShapeIdamountulong
Returns
- bool