C# Class Harriet.Models.Scripting.ScriptApi

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

Private Properties

Property Type Description
OnKeyboardUpDown void

Public Methods

Method 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

Method Description
OnKeyboardUpDown ( object sender, KeyboardHookedEventArgs e ) : void

Method Details

Dispose() public method

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

Go() public method

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

HideChatWindow() public method

チャット枠を隠す
public HideChatWindow ( ) : void
return void

Invoke() public method

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

PauseMove() public method

移動を停止する
public PauseMove ( ) : void
return void

PlaySound() public method

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

PlaySoundWithText() public method

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

ResumeMove() public method

移動を再開する
public ResumeMove ( ) : void
return void

Say() public method

発音記号投げて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 リップシンクを使うかどうか
return void

ScriptApi() public method

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 キャラクター名
return System

ShowContent() public method

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

StopMove() public method

移動を完全に止める
public StopMove ( ) : void
return void

Text() public method

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

Voice() public method

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

Wait() public method

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

Warp() public method

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