How cooperplease/pai-gow-civilization-official works
This repository provides Yarn Spinner’s Unity runtime and editor integration, plus presentation add-ons. The principal workflow is to import Yarn assets into a project, run compiled dialogue, resolve localized lines and variables, dispatch commands, then present lines and options through Unity views. Source-index references establish several runtime and import relationships; unsampled subsystems are included where they represent substantial capabilities, but their internal wiring is not inferred. The README offers no capability detail beyond the project name and a design-document link.
Main entry points: DialogueRunner.cs Dialogue runner · DialoguePresenterBase.cs Presenter interface · YarnProjectImporter.cs Project importer · InMemoryVariableStorage.cs Variable storage
Components 18
Editor authoring
- Editor analysis
Packages/dev.yarnspinner.unity/Editor/Analysis/Analyser.cs - Action diagnostics
Packages/dev.yarnspinner.unity/Editor/Analysis/Diagnostics.cs - Project importer
Packages/dev.yarnspinner.unity/Editor/Importers/YarnProjectImporter.cs
Dialogue runtime
- Dialogue runner
Packages/dev.yarnspinner.unity/Runtime/DialogueRunner/DialogueRunner.cs - Command dispatch
Packages/dev.yarnspinner.unity/Runtime/Commands/Actions.cs
Content and state
- Yarn project
Packages/dev.yarnspinner.unity/Runtime/YarnProject/YarnProject.cs - Variable storage
Packages/dev.yarnspinner.unity/Runtime/Storage/InMemoryVariableStorage.cs - Storage behavior
Packages/dev.yarnspinner.unity/Runtime/Storage/VariableStorageBehaviour.cs - Localization tables
Packages/dev.yarnspinner.unity/Runtime/Localisation/Localization.cs - Localized line providers
Packages/dev.yarnspinner.unity/Runtime/LineProviders/UnityLocalisedLineProvider.cs
Presentation
- Presenter interface
Packages/dev.yarnspinner.unity/Runtime/Views/DialoguePresenterBase.cs - Line presentation
Packages/dev.yarnspinner.unity/Runtime/Views/LinePresenter.cs - Option presentation
Packages/dev.yarnspinner.unity/Runtime/Views/OptionsPresenter.cs - Typewriter effects
Packages/dev.yarnspinner.unity/Runtime/Views/Typewriter/LetterTypewriter.cs
Presentation add-ons
- Classic RPG presenter
Packages/dev.yarnspinner.unity.addons.classicrpg/Runtime/Scripts/RPGDialoguePresenter.cs - Talking-head presenter
Packages/dev.yarnspinner.unity.addons.snaaake/Runtime/Scripts/TalkingHeadDialoguePresenter.cs - Text Animator integration
Packages/dev.yarnspinner.unity.addons.textanimator/Scripts/TextAnimatorYarnTypewriter.cs
Other components
- Unity developer
Connections 19
- Unity developer → Project importer: imports assets
Packages/dev.yarnspinner.unity/Editor/Importers/YarnProjectImporter.cs - Project importer → Yarn project: creates project
Packages/dev.yarnspinner.unity/Editor/Importers/YarnProjectImporter.cs - Project importer → Localization tables: updates tables
Packages/dev.yarnspinner.unity/Editor/Importers/YarnProjectImporter.cs - Project importer → Variable storage: configures storage
Packages/dev.yarnspinner.unity/Editor/Importers/YarnProjectImporter.cs - Editor analysis → Action diagnostics: reports findings
Packages/dev.yarnspinner.unity/Editor/Analysis/Analyser.cs - Dialogue runner → Yarn project: runs program
Packages/dev.yarnspinner.unity/Runtime/DialogueRunner/DialogueRunner.cs - Dialogue runner → Variable storage: uses variables
Packages/dev.yarnspinner.unity/Runtime/DialogueRunner/DialogueRunner.cs - Dialogue runner → Localization tables: uses localization
Packages/dev.yarnspinner.unity/Runtime/DialogueRunner/DialogueRunner.cs - Dialogue runner → Localized line providers: requests lines
Packages/dev.yarnspinner.unity/Runtime/DialogueRunner/DialogueRunner.cs - Dialogue runner → Presenter interface: dispatches dialogue
Packages/dev.yarnspinner.unity/Runtime/DialogueRunner/DialogueRunner.cs - Dialogue runner → Command dispatch: dispatches commands
Packages/dev.yarnspinner.unity/Runtime/DialogueRunner/DialogueRunner.cs - Command dispatch → Dialogue runner: registers actions
Packages/dev.yarnspinner.unity/Runtime/Commands/Actions.cs - Variable storage → Storage behavior: implements storage
Packages/dev.yarnspinner.unity/Runtime/Storage/InMemoryVariableStorage.cs - Presenter interface → Line presentation: specialized by
- Presenter interface → Option presentation: specialized by
- Line presentation → Typewriter effects: uses typewriter
- Presenter interface → Classic RPG presenter: extended by
Packages/dev.yarnspinner.unity.addons.classicrpg/Runtime/Scripts/RPGDialoguePresenter.cs - Presenter interface → Talking-head presenter: extended by
Packages/dev.yarnspinner.unity.addons.snaaake/Runtime/Scripts/TalkingHeadDialoguePresenter.cs - Typewriter effects → Text Animator integration: augmented by