MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / ASReadString

Function ASReadString

Source/Scripting/angelscript/asfuncs.cpp:5951–5957  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5949}
5950
5951std::string ASReadString(SavedChunk* chunk) {
5952 EntityDescriptionField* edf = chunk->desc.GetField(EDF_SCRIPT_PARAMS);
5953 LOG_ASSERT(edf);
5954 std::string str;
5955 edf->ReadString(&str);
5956 return str;
5957}
5958
5959void AttachUndo(ASContext* context) {
5960 context->RegisterObjectType("SavedChunk", 0, asOBJ_REF | asOBJ_NOCOUNT);

Callers

nothing calls this directly

Calls 2

GetFieldMethod · 0.80
ReadStringMethod · 0.45

Tested by

no test coverage detected