MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / diskLoad

Method diskLoad

source/game/StarVehicle.cpp:146–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144}
145
146void Vehicle::diskLoad(Json diskStore) {
147 m_movementController.loadState(diskStore.get("movement"));
148 m_damageTeam.set(EntityDamageTeam(diskStore.get("damageTeam")));
149 setPersistent(diskStore.getBool("persistent"));
150 m_scriptComponent.setScriptStorage(diskStore.getObject("scriptStorage"));
151}
152
153EntityType Vehicle::entityType() const {
154 return EntityType::Vehicle;

Callers

nothing calls this directly

Calls 7

EntityDamageTeamClass · 0.85
getBoolMethod · 0.80
setScriptStorageMethod · 0.80
loadStateMethod · 0.45
getMethod · 0.45
setMethod · 0.45
getObjectMethod · 0.45

Tested by

no test coverage detected