generated from stop-pattern/BveExCsTemplate
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8890dc7
commit 51a623e
Showing
2 changed files
with
73 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
using AtsEx.PluginHost.Plugins; | ||
using AtsEx.PluginHost.Plugins.Extensions; | ||
|
||
namespace CommEx.Serial | ||
{ | ||
/// <summary> | ||
/// プラグインの本体 | ||
/// Plugin() の第一引数でこのプラグインの仕様を指定 | ||
/// Plugin() の第二引数でこのプラグインが必要とするAtsEX本体の最低バージョンを指定(オプション) | ||
/// </summary> | ||
[Plugin(PluginType.Extension)] | ||
internal class Serial : AssemblyPluginBase, IExtension | ||
{ | ||
/// <summary> | ||
/// プラグインが読み込まれた時に呼ばれる | ||
/// 初期化を実装する | ||
/// </summary> | ||
/// <param name="builder"></param> | ||
public Serial(PluginBuilder builder) : base(builder) | ||
{ | ||
Extensions.AllExtensionsLoaded += Extensions_AllExtensionsLoaded; | ||
} | ||
|
||
/// <summary> | ||
/// 全ての AtsEX 拡張機能が読み込まれ、AtsEx.PluginHost.Plugins.Extensions プロパティが取得可能になると発生 | ||
/// </summary> | ||
/// <param name="sender"></param> | ||
/// <param name="e"></param> | ||
private void Extensions_AllExtensionsLoaded(object sender, EventArgs e) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
/// <summary> | ||
/// プラグインが解放されたときに呼ばれる | ||
/// 後処理を実装する | ||
/// </summary> | ||
public override void Dispose() | ||
{ | ||
Extensions.AllExtensionsLoaded -= Extensions_AllExtensionsLoaded; | ||
} | ||
|
||
/// <summary> | ||
/// シナリオ読み込み中に毎フレーム呼び出される | ||
/// </summary> | ||
/// <param name="elapsed">前回フレームからの経過時間</param> | ||
public override TickResult Tick(TimeSpan elapsed) | ||
{ | ||
return new ExtensionTickResult(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters