MCPcopy Create free account
hub / github.com/melonjs/melonJS / resolveIsCollection

Function resolveIsCollection

packages/melonjs/tests/tmxutils.spec.js:856–858  ·  view source on GitHub ↗
(flag, imageCount)

Source from the content-addressed store, hash-verified

854 describe("isCollection tileset flag", () => {
855 // mirrors the logic: tileset.isCollection ?? imageCollection.length > 0
856 function resolveIsCollection(flag, imageCount) {
857 return flag ?? imageCount > 0;
858 }
859
860 it("should use explicit true flag", () => {
861 expect(resolveIsCollection(true, 0)).toEqual(true);

Callers 1

tmxutils.spec.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected