C# Class Harriet.Models.Scripting.ScriptApi

キャラ等のインスタンスに関連付けられたスクリプト用のAPIを提供します。
Inheritance: IScriptApi
Afficher le fichier Open project: malaybaku/harriet Class Usage Examples

Private Properties

Свойство Type Description
OnKeyboardUpDown void

Méthodes publiques

Méthode Description
Dispose ( ) : void

リソースを解放します。

Go ( double x, double y ) : void

ある場所を目標地点にしてそこまで移動する

HideChatWindow ( ) : void

チャット枠を隠す

Invoke ( System.Action action ) : void

UIスレッド上で何かの操作を実行します。

PauseMove ( ) : void

移動を停止する

PlaySound ( string wavpath, bool useLipSynch = true ) : void

指定された音声ファイルを用いて口パクつき再生を行います。

PlaySoundWithText ( string wavpath, string text, double letterPerSec, bool useLipSynch ) : void

音声ファイルで音を再生し、テキストも同時に指定します。

ResumeMove ( ) : void

移動を再開する

Say ( string input, string text, double letterPerSec = 20.0, bool useLipSynch = true ) : void

発音記号投げてAquesTalkで喋らせる

ScriptApi ( IMainWindow window, IHarrietCharacter character, IVoiceOperator voiceOperator, IChatWindowModel chatWindow, IScriptRequestor requestor, CharacterSetting setting, IScriptApiSetting scriptApiSetting, string characterName ) : System

APIの処理を実際に担当できるサブモジュールを用いてインスタンスを初期化します。

ShowContent ( object content ) : void

任意のコンテンツを表示させる

StopMove ( ) : void

移動を完全に止める

Text ( string text, double letterPerSec = 20.0 ) : void

声なしでテキストだけ表示

Voice ( string input, bool useLipSynch = true ) : void

声 + リップシンクだけ

Wait ( double durationSec ) : void

指定された秒数だけ待機します。

Warp ( double x, double y ) : void

ある場所まで瞬時にワープする

Private Methods

Méthode Description
OnKeyboardUpDown ( object sender, KeyboardHookedEventArgs e ) : void

Method Details

Dispose() public méthode

リソースを解放します。
public Dispose ( ) : void
Résultat void

Go() public méthode

ある場所を目標地点にしてそこまで移動する
public Go ( double x, double y ) : void
x double 目標地点のX座標
y double 目標地点のY座標
Résultat void

HideChatWindow() public méthode

チャット枠を隠す
public HideChatWindow ( ) : void
Résultat void

Invoke() public méthode

UIスレッド上で何かの操作を実行します。
public Invoke ( System.Action action ) : void
action System.Action 実行したい処理
Résultat void

PauseMove() public méthode

移動を停止する
public PauseMove ( ) : void
Résultat void

PlaySound() public méthode

指定された音声ファイルを用いて口パクつき再生を行います。
public PlaySound ( string wavpath, bool useLipSynch = true ) : void
wavpath string 音声ファイルへのパス
useLipSynch bool リップシンクを使うかどうか
Résultat void

PlaySoundWithText() public méthode

音声ファイルで音を再生し、テキストも同時に指定します。
public PlaySoundWithText ( string wavpath, string text, double letterPerSec, bool useLipSynch ) : void
wavpath string 音声ファイルのパス
text string 表示するテキスト
letterPerSec double 1秒あたりの文字進み速度(0以下の場合一気に書き切る)
useLipSynch bool リップシンクを使うかどうか
Résultat void

ResumeMove() public méthode

移動を再開する
public ResumeMove ( ) : void
Résultat void

Say() public méthode

発音記号投げてAquesTalkで喋らせる
public Say ( string input, string text, double letterPerSec = 20.0, bool useLipSynch = true ) : void
input string AquesTalkの発音記号列
text string 平文のテキスト
letterPerSec double 1秒間あたりの表示文字数(0以下なら即時表示)
useLipSynch bool リップシンクを使うかどうか
Résultat void

ScriptApi() public méthode

APIの処理を実際に担当できるサブモジュールを用いてインスタンスを初期化します。
public ScriptApi ( IMainWindow window, IHarrietCharacter character, IVoiceOperator voiceOperator, IChatWindowModel chatWindow, IScriptRequestor requestor, CharacterSetting setting, IScriptApiSetting scriptApiSetting, string characterName ) : System
window IMainWindow キャラ表示ウィンドウ
character IHarrietCharacter 実際のキャラクター
voiceOperator IVoiceOperator 発声処理器
chatWindow IChatWindowModel チャット枠
requestor IScriptRequestor スクリプト実行要求器
setting Harriet.Models.Core.CharacterSetting 設定事項
scriptApiSetting IScriptApiSetting
characterName string キャラクター名
Résultat System

ShowContent() public méthode

任意のコンテンツを表示させる
public ShowContent ( object content ) : void
content object 表示するコンテンツ
Résultat void

StopMove() public méthode

移動を完全に止める
public StopMove ( ) : void
Résultat void

Text() public méthode

声なしでテキストだけ表示
public Text ( string text, double letterPerSec = 20.0 ) : void
text string 表示するテキスト
letterPerSec double 1秒間あたりの表示文字数(0以下なら即時表示)
Résultat void

Voice() public méthode

声 + リップシンクだけ
public Voice ( string input, bool useLipSynch = true ) : void
input string 発音を表す文字列
useLipSynch bool リップシンクを使うかどうか
Résultat void

Wait() public méthode

指定された秒数だけ待機します。
public Wait ( double durationSec ) : void
durationSec double 待機する時間(秒)
Résultat void

Warp() public méthode

ある場所まで瞬時にワープする
public Warp ( double x, double y ) : void
x double 目標地点のX座標
y double 目標地点のY座標
Résultat void