1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-11-15 11:22:55 +00:00

Add toString to Stage + Revert "Fix Unscripted Stage Log Trace"

This commit is contained in:
gamerbross 2024-05-28 14:51:16 +02:00
parent 07959d3e88
commit cf61b9ef90
2 changed files with 6 additions and 1 deletions

View file

@ -117,7 +117,7 @@ abstract class BaseRegistry<T:(IRegistryEntry<J> & Constructible<EntryConstructo
var entry:T = createEntry(entryId);
if (entry != null)
{
trace(' Loaded entry data: ${entry.id}');
trace(' Loaded entry data: ${entry}');
entries.set(entry.id, entry);
}
}

View file

@ -852,6 +852,11 @@ class Stage extends FlxSpriteGroup implements IPlayStateScriptedClass implements
}
}
public override function toString():String
{
return 'Stage($id)';
}
static function _fetchData(id:String):Null<StageData>
{
return StageRegistry.instance.parseEntryDataWithMigration(id, StageRegistry.instance.fetchEntryVersion(id));