MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / Load

Method Load

engine/Poseidon/World/WorldImpl.cpp:1515–1536  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1513namespace Poseidon
1514{
1515
1516LSError World::Load(const char* name, int message)
1517{
1518 Fail("Text load obsolete");
1519 GDebugger.NextAliveExpected(15 * 60 * 1000);
1520 ParamArchiveLoad ar(name);
1521 ar.FirstPass();
1522 LSError err = Serialize(ar, message);
1523 if (err == LSOK)
1524 {
1525 ar.SecondPass();
1526 err = Serialize(ar, message);
1527 }
1528 if (err == LSOK)
1529 {
1530 }
1531 else
1532 {
1533 ErrorMessage("Cannot load '%s'. Error '%s' at '%s'.", name, ar.GetErrorName(err),
1534 (const char*)ar.GetErrorContext());
1535 }
1536 return err;
1537}
1538
1539LSError World::Save(const char* name, int message) const

Callers 1

InitVehiclesMethod · 0.45

Calls 7

ErrorMessageFunction · 0.85
NextAliveExpectedMethod · 0.80
FirstPassMethod · 0.80
SecondPassMethod · 0.80
GetErrorNameMethod · 0.80
GetErrorContextMethod · 0.80
SerializeFunction · 0.50

Tested by

no test coverage detected