feat: impl
This commit is contained in:
Vendored
+29
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"projectFileVersion": 4,
|
||||
"projectName": "Complex Test Project",
|
||||
"authorName": ["Author One", "Author Two"],
|
||||
"sourceFiles": [
|
||||
"dialogue/**/*.yarn",
|
||||
"scripts/**/*.yarn"
|
||||
],
|
||||
"excludeFiles": [
|
||||
"**/*.backup.yarn",
|
||||
"dialogue/deprecated/**/*.yarn"
|
||||
],
|
||||
"baseLanguage": "en",
|
||||
"localisation": {
|
||||
"zh-Hans": {
|
||||
"strings": "translations/zh-Hans.csv"
|
||||
}
|
||||
},
|
||||
"definitions": ["custom-commands.ysls.json"],
|
||||
"compilerOptions": {
|
||||
"requireVariableDeclarations": true,
|
||||
"allowPreviewFeatures": false
|
||||
},
|
||||
"editorOptions": {
|
||||
"yarnScriptEditor": {
|
||||
"theme": "dark"
|
||||
}
|
||||
}
|
||||
}
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
title: ComplexNode1
|
||||
tags: test complex
|
||||
when: $has_sword
|
||||
---
|
||||
Character: This is a complex node with tags and conditions.
|
||||
<<once>>
|
||||
This text only shows once.
|
||||
<<endonce>>
|
||||
===
|
||||
|
||||
title: ComplexNode2
|
||||
---
|
||||
<<if $has_key>>
|
||||
Character: You have the key!
|
||||
<<else>>
|
||||
Character: You need a key to proceed.
|
||||
<<endif>>
|
||||
|
||||
Here are your options:
|
||||
-> [Option 1] Go left
|
||||
You went left.
|
||||
-> [Option 2] Go right
|
||||
You went right.
|
||||
===
|
||||
@@ -0,0 +1,4 @@
|
||||
title: BackupNode
|
||||
---
|
||||
This file should be excluded.
|
||||
===
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
title: ScriptNode
|
||||
---
|
||||
<<set $variable = 1>>
|
||||
<<set $another = true>>
|
||||
===
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"projectFileVersion": 4,
|
||||
"projectName": "Localised Project",
|
||||
"sourceFiles": ["**/*.yarn"],
|
||||
"baseLanguage": "en",
|
||||
"localisation": {
|
||||
"zh-Hans": {
|
||||
"strings": "translations/zh-Hans.csv",
|
||||
"assets": "translations/zh-Hans/"
|
||||
},
|
||||
"ja": {
|
||||
"strings": "translations/ja.csv"
|
||||
}
|
||||
}
|
||||
}
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
title: Welcome
|
||||
---
|
||||
Welcome to the localised project!
|
||||
This text should be translated.
|
||||
===
|
||||
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"projectFileVersion": 4,
|
||||
"projectName": "Simple Test Project",
|
||||
"sourceFiles": ["**/*.yarn"],
|
||||
"baseLanguage": "en"
|
||||
}
|
||||
Vendored
+12
@@ -0,0 +1,12 @@
|
||||
title: Start
|
||||
---
|
||||
Hello, world!
|
||||
This is a simple test dialogue.
|
||||
===
|
||||
|
||||
title: Greeting
|
||||
tags: greeting
|
||||
---
|
||||
Player: Hi there!
|
||||
NPC: Welcome to our game!
|
||||
===
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
title: AnotherNode
|
||||
---
|
||||
This is another test node.
|
||||
<<if $variable>>
|
||||
Conditional text here.
|
||||
<<endif>>
|
||||
===
|
||||
Reference in New Issue
Block a user