MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / net_Load

Method net_Load

ogsr_engine/xrGame/GameObject.cpp:449–480  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

447}
448
449void CGameObject::net_Load(IReader& ireader)
450{
451 load(ireader);
452
453 // Script Binder Load ---------------------------------------
454#ifdef DEBUG
455 if (psAI_Flags.test(aiSerialize))
456 {
457 Msg(">> **** Load script object [%s] *****", *cName());
458 Msg(">> Before load :: reader position = [%i]", ireader.tell());
459 }
460
461#endif
462
463 CScriptBinder::load(ireader);
464
465#ifdef DEBUG
466
467 if (psAI_Flags.test(aiSerialize))
468 {
469 Msg(">> After load :: reader position = [%i]", ireader.tell());
470 }
471#endif
472 // ----------------------------------------------------------
473#ifdef DEBUG
474 if (ph_dbg_draw_mask1.test(ph_m1_DbgTrackObject) && _stricmp(PH_DBG_ObjectTrack(), *cName()) == 0)
475 {
476 Msg("CGameObject::net_Load obj %s (loaded) %f,%f,%f", PH_DBG_ObjectTrack(), Position().x, Position().y, Position().z);
477 }
478
479#endif
480}
481
482void CGameObject::save(NET_Packet& output_packet) {}
483

Callers 1

PHLoadStateMethod · 0.45

Calls 5

MsgFunction · 0.85
PH_DBG_ObjectTrackFunction · 0.85
loadFunction · 0.70
testMethod · 0.45
tellMethod · 0.45

Tested by

no test coverage detected