Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?
暇すぎるから 書いてみた。が、 interfaceについてTypeScript (0.8.3)だと public static〜という感じでプロパティ指定ができないので、 (new Slime).create();という感じになってしまう。 あとclass内でのプロパティとして持たせるのがだるいので moduleを使ってしまった。 ES5で定義されているgetアクセサを利用しているので、 interface EnemyStatus { name: string; hitPoint: number; magicPoint: number; experiencePoint: number; gold: number; } interface Enemy { status: EnemyStatus; name: string; attaked: (attackPoint: number)=> v
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く