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

Method compatible

source/game/StarSpawnTypeDatabase.cpp:31–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29}
30
31bool SpawnParameters::compatible(SpawnParameters const& parameters) const {
32 return areas.hasIntersection(parameters.areas)
33 && (region == Region::All || parameters.region == Region::All || region == parameters.region)
34 && (time == Time::All || parameters.time == Time::All || time == parameters.time);
35}
36
37EnumMap<SpawnParameters::Area> const SpawnParameters::AreaNames{
38 {SpawnParameters::Area::Surface, "surface"},

Callers 1

spawnInCellMethod · 0.80

Calls 1

hasIntersectionMethod · 0.80

Tested by

no test coverage detected