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

Method save

ogsr_engine/xrGame/PhysicsShellHolder.cpp:321–330  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

319float CPhysicsShellHolder::EffectiveGravity() { return ph_world->Gravity(); }
320
321void CPhysicsShellHolder::save(NET_Packet& output_packet)
322{
323 inherited::save(output_packet);
324 u8 enable_state = (u8)stNotDefitnite;
325 if (PPhysicsShell() && PPhysicsShell()->isActive())
326 {
327 enable_state = u8(PPhysicsShell()->isEnabled() ? stEnable : stDisable);
328 }
329 output_packet.w_u8(enable_state);
330}
331
332void CPhysicsShellHolder::load(IReader& input_packet)
333{

Callers

nothing calls this directly

Calls 4

saveFunction · 0.70
isActiveMethod · 0.45
isEnabledMethod · 0.45
w_u8Method · 0.45

Tested by

no test coverage detected