doc ワークフローの追加・READMEの修正
This commit is contained in:
60
doc/sequence.md
Normal file
60
doc/sequence.md
Normal file
@@ -0,0 +1,60 @@
|
||||
# シーケンス図
|
||||
|
||||
## 1. Discord ミュート連動
|
||||
|
||||
```mermaid
|
||||
sequenceDiagram
|
||||
participant VRChat
|
||||
participant App as VRC_OSC
|
||||
participant Discord
|
||||
participant VRChatWin as VRChat Window
|
||||
|
||||
VRChat->>App: DiscordSend パラメータ ON
|
||||
App->>Discord: Discord ウィンドウを探す
|
||||
alt Discord ウィンドウあり
|
||||
App->>Discord: Ctrl+Shift+M を送る
|
||||
else Discord ウィンドウなし
|
||||
App->>Discord: ブラウザ版 Discord を探す
|
||||
App->>Discord: Ctrl+Shift+M を送る
|
||||
end
|
||||
App->>VRChatWin: VRChat に戻す
|
||||
```
|
||||
|
||||
## 2. VRC ログ通知
|
||||
|
||||
```mermaid
|
||||
sequenceDiagram
|
||||
participant VRChat
|
||||
participant App as VRC_OSC
|
||||
participant Log as VRChat Log
|
||||
participant Webhook as Discord Webhook
|
||||
|
||||
VRChat->>App: vrc_log ON
|
||||
App->>Log: 最新ログを読む
|
||||
App->>Log: 入室 / 退室 / ワールド変更を解析
|
||||
opt 通知対象あり
|
||||
App->>Webhook: 通知を送る
|
||||
end
|
||||
```
|
||||
|
||||
## 3. OCR と翻訳
|
||||
|
||||
```mermaid
|
||||
sequenceDiagram
|
||||
participant VRChat
|
||||
participant App as VRC_OSC
|
||||
participant OCR
|
||||
participant Translate
|
||||
participant Clipboard
|
||||
participant Runtime
|
||||
|
||||
VRChat->>App: ocrEnabled または translation ON
|
||||
App->>OCR: 画面を読み取る
|
||||
OCR-->>App: 認識テキスト
|
||||
opt translation ON
|
||||
App->>Translate: 日本語へ翻訳
|
||||
Translate-->>App: 翻訳結果
|
||||
App->>Clipboard: 翻訳文をコピー
|
||||
end
|
||||
App->>Runtime: 結果を保存
|
||||
```
|
||||
Reference in New Issue
Block a user