MCPcopy Create free account
hub / github.com/Illation/ETEngine / MakeData

Method MakeData

Projects/Demo/source/Common/CelestialBodyComponent.cpp:38–46  ·  view source on GitHub ↗

--------------------------------------- CelestialBodyComponentDesc::MakeData Create a spawn component from a descriptor

Source from the content-addressed store, hash-verified

36// Create a spawn component from a descriptor
37//
38CelestialBodyComponent* CelestialBodyComponentDesc::MakeData()
39{
40 CelestialBodyComponent* const ret = new CelestialBodyComponent();
41
42 ret->rotationSpeed = rotationSpeed;
43 ret->isRotating = startRotating;
44
45 return ret;
46}
47
48
49} // namespace demo

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected