コード例 #1
0
 public Power(Actor self, PowerInfo info)
 {
     this.info      = info;
     PlayerPower    = self.Owner.PlayerActor.Trait <PowerManager>();
     powerModifiers = Exts.Lazy(() => self.TraitsImplementing <IPowerModifier>().ToArray());
 }
コード例 #2
0
ファイル: Power.cs プロジェクト: RobotCaleb/OpenRA
 public Power(Actor self, PowerInfo info)
 {
     this.info = info;
     PlayerPower = self.Owner.PlayerActor.Trait<PowerManager>();
     powerModifiers = Exts.Lazy(() => self.TraitsImplementing<IPowerModifier>().ToArray());
 }