コード例 #1
0
ファイル: Player.cs プロジェクト: WrongDog/CardServer
 public Player()
 {
     this.Sacrifice = new NoticableEvent<Player, Card>(this, this.OnSacrifice);
     this.Summon = new NoticableEvent<Player, Card>(this, this.OnSummon);
     this.Cast = new NoticableEvent<Player, Card>(this, this.OnCast);
 }
コード例 #2
0
 public DamageableResourceHolder()
 {
     this.OnDamage = new NoticableEvent<DamageableResourceHolder, Damage>(this, this.OnDamegeFireCore);
     this.OnMagicalDamage = new NoticableEvent<DamageableResourceHolder, MagicalDamage>(this, this.OnMagicalDamageFireCore);
     this.OnPhysicalDamage = new NoticableEvent<DamageableResourceHolder, PhysicalDamage>(this, this.OnPhysicalDamageFireCore);
 }
コード例 #3
0
ファイル: WorldObject.cs プロジェクト: WrongDog/CardServer
 public WorldObject()
 {
     this.RoundStart = new NoticableEvent<WorldObject, bool>(this, null);
     this.RoundEnd = new NoticableEvent<WorldObject, bool>(this,null);
 }