MCPcopy Create free account
hub / github.com/OneLoneCoder/olcPixelGameEngine / SetReal

Method SetReal

utilities/olcUTIL_DataFile.h:98–101  ·  view source on GitHub ↗

Sets the Real Value of a Property (for a given index)

Source from the content-addressed store, hash-verified

96
97 // Sets the Real Value of a Property (for a given index)
98 inline void SetReal(const double d, const size_t nItem = 0)
99 {
100 SetString(std::to_string(d), nItem);
101 }
102
103 // Retrieves the Integer Value of a Property (for a given index) or 0
104 inline const int32_t GetInt(const size_t nItem = 0) const

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected