medalsForEach(callback)medalSystem.js:134Calls a function for each medal
callbackMedalCallbackFunction
LittleJS Medal System
medalsForEach(callback)medalSystem.js:134Calls a function for each medal
callback MedalCallbackFunctionmedalsInit(saveName)medalSystem.js:61Initialize medals with a save name used for storage
saveName stringThe localStorage key the medals are kept under, a different one from the game's own readSaveData and writeSaveData, or each would overwrite the other
medalsReset()medalSystem.js:140Reset all medals to locked and persist the cleared catalog
medals : Object<number, Medal>medalSystem.js:46List of all medals
MedalCallbackFunction(medal)medalSystem.js:125medal Medal