Table of Contents

Class StrictShapeDefinitionFactory

Namespace
Root
Assembly
Game.Content.Features.dll
public class StrictShapeDefinitionFactory : IShapeDefinitionFactory
Inheritance
object
StrictShapeDefinitionFactory
Implements
Extension Methods

Constructors

StrictShapeDefinitionFactory(int, IEnumerable<IShapeSubPart>, IEnumerable<IShapeColor>, IShapeHashParser, IShapeIdManager)

public StrictShapeDefinitionFactory(int partCount, IEnumerable<IShapeSubPart> shapeSubParts, IEnumerable<IShapeColor> shapeColors, IShapeHashParser shapeHashParser, IShapeIdManager shapeIdManager)

Parameters

partCount int
shapeSubParts IEnumerable<IShapeSubPart>
shapeColors IEnumerable<IShapeColor>
shapeHashParser IShapeHashParser
shapeIdManager IShapeIdManager

Methods

CreateShapeDefinition(string)

public ShapeDefinition CreateShapeDefinition(string hash)

Parameters

hash string

Returns

ShapeDefinition

TryCreateShapeDefinition(string, out ShapeDefinition)

public bool TryCreateShapeDefinition(string hash, out ShapeDefinition shapeDefinition)

Parameters

hash string
shapeDefinition ShapeDefinition

Returns

bool