Table of Contents

Class ResearchShapeStorage

Namespace
Root
Assembly
SPZGameAssembly.dll
public class ResearchShapeStorage
Inheritance
object
ResearchShapeStorage
Extension Methods

Constructors

ResearchShapeStorage(SerializedData, IResearchShapeUnifier, IShapeIdManager, ILogger)

public ResearchShapeStorage(ResearchShapeStorage.SerializedData data, IResearchShapeUnifier shapeUnifier, IShapeIdManager shapeIdManager, ILogger logger)

Parameters

data ResearchShapeStorage.SerializedData
shapeUnifier IResearchShapeUnifier
shapeIdManager IShapeIdManager
logger ILogger

Properties

OnDelivered

public IEvent<UnifiedShapeId, ulong> OnDelivered { get; }

Property Value

IEvent<UnifiedShapeId, ulong>

ShapeAmountChangedHooks

public IReadOnlyShapeHooks ShapeAmountChangedHooks { get; }

Property Value

IReadOnlyShapeHooks

ShapeDeliverHooks

public IReadOnlyShapeHooks ShapeDeliverHooks { get; }

Property Value

IReadOnlyShapeHooks

StoredShapes

public IReadOnlyDictionary<UnifiedShapeId, ulong> StoredShapes { get; }

Property Value

IReadOnlyDictionary<UnifiedShapeId, ulong>

Methods

Add(ShapeId, ulong)

public void Add(ShapeId id, ulong amount)

Parameters

id ShapeId
amount ulong

Add(ShapeId, ulong, out UnifiedShapeId)

public void Add(ShapeId id, ulong amount, out UnifiedShapeId unifiedId)

Parameters

id ShapeId
amount ulong
unifiedId UnifiedShapeId

CanAfford(ShapeId, ulong)

public bool CanAfford(ShapeId id, ulong amount)

Parameters

id ShapeId
amount ulong

Returns

bool

Dispose()

public void Dispose()

GetAmount(ShapeId)

public ulong GetAmount(ShapeId id)

Parameters

id ShapeId

Returns

ulong

GetAmount(UnifiedShapeId)

public ulong GetAmount(UnifiedShapeId unifiedId)

Parameters

unifiedId UnifiedShapeId

Returns

ulong

RegisterCommands(IDebugConsole)

public void RegisterCommands(IDebugConsole console)

Parameters

console IDebugConsole

Serialize()

public ResearchShapeStorage.SerializedData Serialize()

Returns

ResearchShapeStorage.SerializedData

TryTake(ShapeId, ulong)

public bool TryTake(ShapeId id, ulong amount)

Parameters

id ShapeId
amount ulong

Returns

bool