MCPcopy Create free account
hub / github.com/ZDoom/Raze / ReadOptionalInt

Method ReadOptionalInt

source/common/engine/serializer.cpp:1799–1810  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1797}
1798
1799bool FSerializer::ReadOptionalInt(const char * key, int &into)
1800{
1801 if(!isReading()) return false;
1802
1803 auto val = r->FindKey(key);
1804 if(val && val->IsInt())
1805 {
1806 into = val->GetInt();
1807 return true;
1808 }
1809 return false;
1810}
1811
1812#include "renderstyle.h"
1813FSerializer& Serialize(FSerializer& arc, const char* key, FRenderStyle& style, FRenderStyle* def)

Callers

nothing calls this directly

Calls 3

IsIntMethod · 0.80
GetIntMethod · 0.80
FindKeyMethod · 0.45

Tested by

no test coverage detected