8000 スキットのSourceGeneratorを追加 by sakastudio · Pull Request #541 · moorestech/moorestech · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

スキットのSourceGeneratorを追加 #541

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 25, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,16 @@ MonoBehaviour:
m_ReadOnly: 0
m_SerializedLabels: []
FlaggedDuringContentUpdateRestriction: 0
- m_GUID: 9e3e73955b49644ebb351728d0dca3a3
m_Address: Vanilla/Skit/skits/sample_skit
m_ReadOnly: 0
m_SerializedLabels: []
FlaggedDuringContentUpdateRestriction: 0
- m_GUID: d608bd17f9587487ab66d6adb08fc735
m_Address: Vanilla/Skit/commands
m_ReadOnly: 0
m_SerializedLabels: []
FlaggedDuringContentUpdateRestriction: 0
m_ReadOnly: 0
m_Settings: {fileID: 11400000, guid: be510649df329a24cabdde2725dd7579, type: 2}
m_SchemaSet:
Expand Down
163 changes: 163 additions & 0 deletions moorestech_client/Assets/AddressableResources/Skit/commands.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,163 @@
version: 1
commands:
- id: text
label: テキスト
description: 台詞を表示
commandListLabelFormat: "{character}「{body}」"
properties:
character:
type: enum
options: ["キャラA", "キャラB", "キャラC", "キャラD", "先生", "店員"]
required: true
body:
type: string
multiline: true
required: true

- id: emote
label: エモート
description: 立ち絵・表情切替
commandListLabelFormat: "EMOTE: {character}, {emotion}"
properties:
character:
type: enum
options: ["キャラA", "キャラB", "キャラC", "キャラD", "先生", "店員"]
required: true
emotion:
type: enum
options: ["通常", "笑顔", "驚き", "怒り", "悲しみ", "困惑", "照れ", "恐怖", "喜び", "真剣"]
required: true

- id: wait
label: 待機
description: 指定秒数だけウェイト
commandListLabelFormat: "WAIT: {seconds}"
defaultBackgroundColor: '#57e317'
properties:
seconds:
type: number
default: 0.5
constraints:
min: 0

- id: bgm
label: BGM
description: 背景音楽を変更
commandListLabelFormat: "BGM: {track}, volume={volume}"
properties:
track:
type: enum
options: ["なし", "日常", "緊張", "悲しい", "楽しい", "神秘的", "アクション", "ロマンティック", "エンディング"]
required: true
volume:
type: number
default: 1.0
constraints:
min: 0
max: 1.0

- id: sound
label: 効果音
description: 効果音を再生
commandListLabelFormat: "SOUND: {effect}, volume={volume}"
properties:
effect:
type: enum
options: ["ドア", "足音", "衝撃", "爆発", "鐘", "拍手", "警報", "雨", "雷", "風"]
required: true
volume:
type: number
default: 1.0
constraints:
min: 0
max: 1.0

- id: background
label: 背景
description: 背景画像を変更
commandListLabelFormat: "BG: {scene}, effect={transition}"
properties:
scene:
type: enum
options: ["教室", "廊下", "体育館", "屋上", "公園", "駅", "カフェ", "自宅", "図書館", "商店街"]
required: true
transition:
type: enum
options: ["なし", "フェード", "ワイプ", "クロスフェード", "フラッシュ"]
default: "なし"

- id: camera
label: カメラ
description: カメラワークを指定
commandListLabelFormat: "CAMERA: {action}, target={target}"
properties:
action:
type: enum
options: ["ズームイン", "ズームアウト", "パン左", "パン右", "シェイク", "フォーカス", "リセット"]
required: true
target:
type: enum
options: ["全体", "キャラA", "キャラB", "キャラC", "キャラD", "先生", "店員", "背景"]
default: "全体"

- id: choice
label: 選択肢
description: 選択肢を表示
commandListLabelFormat: "CHOICE: {options}"
properties:
options:
type: string
multiline: true
description: "選択肢を1行に1つずつ記述"
required: true
timeout:
type: number
default: 0
description: "自動選択までの秒数(0で無制限)"

- id: action
label: アクション
description: キャラクターのアクションを実行
commandListLabelFormat: "ACTION: {character}, {action}"
properties:
character:
type: enum
options: ["キャラA", "キャラB", "キャラC", "キャラD", "先生", "店員"]
required: true
action:
type: enum
options: ["歩く", "走る", "座る", "立つ", "ジャンプ", "踊る", "倒れる", "手を振る", "指さす", "抱きしめる"]
required: true
direction:
type: enum
options: ["左", "右", "上", "下", "中央"]
default: "中央"

- id: narration
label: ナレーション
description: ナレーションテキストを表示
commandListLabelFormat: "NARRATION: {text}"
properties:
text:
type: string
multiline: true
required: true
style:
type: enum
options: ["通常", "強調", "小さく", "斜体", "点滅"]
default: "通常"

- id: branch
label: 分岐
description: 他のコマンドを参照する分岐
commandListLabelFormat: "BRANCH: Target {targetCommand}"
defaultBackgroundColor: "#f9f0ff"
properties:
targetCommand:
type: command
required: true
commandTypes: ["text", "narration"] # Only allow text and narration commands
condition:
type: string
required: true
multiline: true

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions moorestech_client/Assets/AddressableResources/Skit/skits.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading
0