MCPcopy Create free account
hub / github.com/chrxh/alien / create

Method create

source/EngineInterface/ShapeGenerator.cpp:314–337  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

312};
313
314ShapeGenerator ShapeGeneratorFactory::create(ConstructionShape shape)
315{
316 switch (shape) {
317 case ConstructionShape_Segment:
318 return std::make_shared<_SegmentGenerator>();
319 case ConstructionShape_Triangle:
320 return std::make_shared<_TriangleGenerator>();
321 case ConstructionShape_Rectangle:
322 return std::make_shared<_RectangleGenerator>();
323 case ConstructionShape_Hexagon:
324 return std::make_shared<_HexagonGenerator>();
325 case ConstructionShape_Loop:
326 return std::make_shared<_LoopGenerator>();
327 case ConstructionShape_Tube:
328 return std::make_shared<_TubeGenerator>();
329 case ConstructionShape_Lolli:
330 return std::make_shared<_LolliGenerator>();
331 case ConstructionShape_SmallLolli:
332 return std::make_shared<_SmallLolliGenerator>();
333 case ConstructionShape_Zigzag:
334 return std::make_shared<_ZigzagGenerator>();
335 }
336 return nullptr;
337}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected