Table of Contents

Class BlockAssetCatalog

Namespace
Shard.Gameplay.Core.Blocks
Assembly
Shard.Gameplay.Core.dll
public sealed class BlockAssetCatalog
Inheritance
BlockAssetCatalog
Inherited Members

Constructors

BlockAssetCatalog(AssetRegistry, AssetDefinitionBinding<BlockType>)

public BlockAssetCatalog(AssetRegistry registry, AssetDefinitionBinding<BlockType> blockTypes)

Parameters

registry AssetRegistry
blockTypes AssetDefinitionBinding<BlockType>

Methods

Get(string)

public BlockType Get(string blockTypeId)

Parameters

blockTypeId string

Returns

BlockType

TryGet(string?, out BlockType?)

public bool TryGet(string? blockTypeId, out BlockType? blockType)

Parameters

blockTypeId string
blockType BlockType

Returns

bool