MCPcopy Create free account
hub / github.com/dhewm/dhewm3 / Save

Method Save

neo/d3xp/script/Script_Program.cpp:908–920  ·  view source on GitHub ↗

================ idScriptObject::Save ================ */

Source from the content-addressed store, hash-verified

906================
907*/
908void idScriptObject::Save( idSaveGame *savefile ) const {
909 int size;
910
911 if ( type == &type_object && data == NULL ) {
912 // Write empty string for uninitialized object
913 savefile->WriteString( "" );
914 } else {
915 savefile->WriteString( type->Name() );
916 size = type->Size();
917 savefile->WriteInt( size );
918 savefile->Write( data, size );
919 }
920}
921
922/*
923================

Callers

nothing calls this directly

Calls 7

WriteStringMethod · 0.45
NameMethod · 0.45
SizeMethod · 0.45
WriteIntMethod · 0.45
WriteMethod · 0.45
NumMethod · 0.45
WriteByteMethod · 0.45

Tested by

no test coverage detected