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

Method GetInt

utilities/olcUTIL_DataFile.h:104–107  ·  view source on GitHub ↗

Retrieves the Integer Value of a Property (for a given index) or 0

Source from the content-addressed store, hash-verified

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
105 {
106 return std::atoi(GetString(nItem).c_str());
107 }
108
109 // Sets the Integer Value of a Property (for a given index)
110 inline void SetInt(const int32_t n, const size_t nItem = 0)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected