mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2025-09-01 03:15:53 +00:00
30 lines
948 B
Haxe
30 lines
948 B
Haxe
package funkin.data.dialogue;
|
|
|
|
import funkin.play.cutscene.dialogue.Conversation;
|
|
import funkin.play.cutscene.dialogue.ScriptedConversation;
|
|
import funkin.util.tools.ISingleton;
|
|
import funkin.data.DefaultRegistryImpl;
|
|
|
|
@:nullSafety
|
|
class ConversationRegistry extends BaseRegistry<Conversation, ConversationData, ConversationEntryParams> implements ISingleton implements DefaultRegistryImpl
|
|
{
|
|
/**
|
|
* The current version string for the dialogue box data format.
|
|
* Handle breaking changes by incrementing this value
|
|
* and adding migration to the `migrateConversationData()` function.
|
|
*/
|
|
public static final CONVERSATION_DATA_VERSION:thx.semver.Version = "1.0.0";
|
|
|
|
public static final CONVERSATION_DATA_VERSION_RULE:thx.semver.VersionRule = "1.0.x";
|
|
|
|
public function new()
|
|
{
|
|
super('CONVERSATION', 'dialogue/conversations', CONVERSATION_DATA_VERSION_RULE);
|
|
}
|
|
}
|
|
|
|
typedef ConversationEntryParams =
|
|
{
|
|
var placeholder:String;
|
|
}
|