2024-08-29 23:55:24 +00:00
|
|
|
package funkin.data.freeplay.style;
|
|
|
|
|
|
|
|
import funkin.ui.freeplay.FreeplayStyle;
|
|
|
|
import funkin.data.freeplay.style.FreeplayStyleData;
|
|
|
|
import funkin.ui.freeplay.ScriptedFreeplayStyle;
|
2025-04-12 22:16:04 +00:00
|
|
|
import funkin.util.tools.ISingleton;
|
|
|
|
import funkin.data.DefaultRegistryImpl;
|
2024-08-29 23:55:24 +00:00
|
|
|
|
2025-06-25 12:33:56 +00:00
|
|
|
@:nullSafety
|
2025-08-11 21:07:20 +00:00
|
|
|
class FreeplayStyleRegistry extends BaseRegistry<FreeplayStyle, FreeplayStyleData, FreeplayStyleEntryParams> implements ISingleton
|
|
|
|
implements DefaultRegistryImpl
|
2024-08-29 23:55:24 +00:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
* The current version string for the style data format.
|
|
|
|
* Handle breaking changes by incrementing this value
|
|
|
|
* and adding migration to the `migrateStyleData()` function.
|
|
|
|
*/
|
|
|
|
public static final FREEPLAYSTYLE_DATA_VERSION:thx.semver.Version = '1.0.0';
|
|
|
|
|
|
|
|
public static final FREEPLAYSTYLE_DATA_VERSION_RULE:thx.semver.VersionRule = '1.0.x';
|
|
|
|
|
|
|
|
public function new()
|
|
|
|
{
|
|
|
|
super('FREEPLAYSTYLE', 'ui/freeplay/styles', FREEPLAYSTYLE_DATA_VERSION_RULE);
|
|
|
|
}
|
|
|
|
}
|
2025-08-11 21:07:20 +00:00
|
|
|
|
|
|
|
typedef FreeplayStyleEntryParams = {}
|