MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / getData

Method getData

src/OpenLoco/src/Objects/SoundObject.cpp:37–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35 }
36
37 const OpenLoco::SoundObjectData* SoundObject::getData() const
38 {
39 if (dataOffset == 0)
40 {
41 return nullptr;
42 }
43 return reinterpret_cast<const OpenLoco::SoundObjectData*>(reinterpret_cast<const uint8_t*>(this) + dataOffset);
44 }
45
46}

Callers 1

getSoundBufferFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected