2025-08-20 18:26:48 +00:00
|
|
|
package funkin.data.dialogue;
|
2024-02-07 23:45:13 +00:00
|
|
|
|
|
|
|
import funkin.play.cutscene.dialogue.Conversation;
|
|
|
|
import funkin.play.cutscene.dialogue.ScriptedConversation;
|
2025-04-12 22:16:04 +00:00
|
|
|
import funkin.util.tools.ISingleton;
|
|
|
|
import funkin.data.DefaultRegistryImpl;
|
2024-02-07 23:45:13 +00:00
|
|
|
|
2025-06-25 12:33:56 +00:00
|
|
|
@:nullSafety
|
2025-08-11 21:07:20 +00:00
|
|
|
class ConversationRegistry extends BaseRegistry<Conversation, ConversationData, ConversationEntryParams> implements ISingleton implements DefaultRegistryImpl
|
2024-02-07 23:45:13 +00:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
* 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);
|
|
|
|
}
|
|
|
|
}
|
2025-08-11 21:07:20 +00:00
|
|
|
|
2025-08-20 18:26:48 +00:00
|
|
|
typedef ConversationEntryParams =
|
|
|
|
{
|
|
|
|
var placeholder:String;
|
|
|
|
}
|