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
public class DiarySelectionPipeline : Pipeline<IEnumerable<Diary>> { | |
public override IEnumerable<Diary> Process(IEnumerable<Diary> input) { | |
foreach(var filter in _filters) { | |
input = filter.Execute(input); | |
} | |
return input; | |
} | |
} |
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
const parsed = JSON.parse(json); | |
const hasTags = function(tags, pattern) { | |
return tags.some(x => pattern.test(x)); | |
}; | |
new Vue({ | |
el:'#articles', | |
data: { | |
genres:parsed, |
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
////============================================================================= | |
//// エネミーの透過をテストするプログラム | |
////============================================================================= | |
const createEnemies = function() { | |
const enemy1 = new Sprite(ImageManager.loadEnemy('Snake')); | |
const enemy2 = new Sprite(ImageManager.loadEnemy('Windspirit')); | |
enemy1.addChild(enemy2); | |
enemy1.position.set(100, 100); | |
return enemy1; |
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
using UnityEngine; | |
using UnityEngine.UI; | |
using UnityEngine.Serialization; | |
namespace Fungus { | |
/// <summary> | |
/// Change a UI sprite. | |
/// </summary> | |
[CommandInfo("UI", | |
"Change UI Sprite", |
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
class IGame_Card { | |
constructor() { | |
this.initialize.apply(this, arguments); | |
} | |
initialize() { | |
throw new Error('initializeが実装されていません'); | |
} | |
get name() { |
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
requestAnimationFrame(() => { | |
//Note:何もしない。 | |
//Note:コアスクリプトのバージョンによっては、これを呼んでおかないと音声のみの再生になる。 | |
}); | |
const playOriginalVideo = function() { | |
//テクスチャとSpriteの生成 | |
const texture = new PIXI.Texture.fromVideo('movies/testmovie-640x360.webm');//ファイル名指定 | |
const videoSprite = new PIXI.Sprite(texture); |
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
//============================================================================= | |
// TsumioOnlineRanking.js | |
// ---------------------------------------------------------------------------- | |
// Copyright (c) 2017-2018 Tsumio | |
// This software is released under the MIT License. | |
// http://opensource.org/licenses/mit-license.php | |
// ---------------------------------------------------------------------------- | |
// Version | |
// 1.0.0 2018/08/10 公開。 | |
// ---------------------------------------------------------------------------- |
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
using UnityEngine; | |
using Zenject; | |
public class AttackerInstaller : MonoInstaller<AttackerInstaller> { | |
public override void InstallBindings() { | |
Container.Bind<IPlayerAttacker>().To<PlayerAttacker>().AsSingle(); | |
} | |
} |
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
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
/// <summary> | |
/// プレイヤーの攻撃を表すインターフェイス | |
/// </summary> | |
public interface IPlayerAttacker { | |
void Attack(); | |
} |
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
/// <summary> | |
/// 偉大なるHogeXer株式会社である。ゲーム作ってるよ | |
/// </summary> | |
internal class HogeXerCompany { | |
////============================================================================= | |
//// Local Field | |
//// | |
////============================================================================= |
NewerOlder