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

Method DamageSource

source/game/StarDamage.cpp:8–9  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6namespace Star {
7
8DamageSource::DamageSource()
9 : damageType(DamageType::NoDamage), damage(0.0), sourceEntityId(NullEntityId), rayCheck(false) {}
10
11DamageSource::DamageSource(Json const& config) {
12 if (auto dtype = config.optString("damageType"))

Callers

nothing calls this directly

Calls 15

jsonToPolyFFunction · 0.85
jsonToLine2FFunction · 0.85
StarExceptionClass · 0.85
EntityDamageTeamClass · 0.85
JsonClass · 0.85
jsonToVec2FFunction · 0.85
optStringMethod · 0.80
getFloatMethod · 0.80
getBoolMethod · 0.80
getIntMethod · 0.80
getStringMethod · 0.80
getUIntMethod · 0.80

Tested by

no test coverage detected