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

Method forEachAbortable

source/core/StarDirectives.cpp:359–370  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

357}
358
359bool DirectivesGroup::forEachAbortable(AbortableDirectivesCallback callback) const {
360 for (auto& directives : m_directives) {
361 if (directives) {
362 for (auto& entry : directives->entries) {
363 if (!callback(entry, directives))
364 return false;
365 }
366 }
367 }
368
369 return true;
370}
371
372Image DirectivesGroup::applyNewImage(Image const& image) const {
373 Image result = image;

Callers 1

calculateImageSizeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected