static HealthBehavior()
 {
     SignalEntryPoint.For <HealthBehavior>()
     .Register(AllSignals.Health, (i, d) => i.Handle(d))
     .Register(AllSignals.Damage, (i, d) => i.Handle(d))
     .Register(AllSignals.Death, i => i.HandleDeath());
 }
示例#2
0
 static DropItemOnDealthBehavior()
 {
     SignalEntryPoint.For <DropItemOnDealthBehavior>()
     .Register(AllSignals.Death, i => i.HandleDeath());
 }
 static MoneyBankerBehavior()
 {
     SignalEntryPoint.For <MoneyBankerBehavior>()
     .Register(AllSignals.MoneyTransfer, (behavior, transfer) => behavior.HandleMoney(transfer), AllPriorities.VeryLow);
 }
 static PlayerDeathBehavior()
 {
     SignalEntryPoint.For <PlayerDeathBehavior>()
     .Register(AllSignals.Death, i => i.HandleDeath(), AllPriorities.VeryHigh);
 }
 static MoneyCollector()
 {
     SignalEntryPoint.For <MoneyCollector>()
     .Register(AllSignals.MoneyTransfer, (i, d) => i.Handle(d), AllPriorities.VeryHigh);
 }
示例#6
0
 static MoveTowardsTargetBehavior()
 {
     SignalEntryPoint.For <MoveTowardsTargetBehavior>()
     .Register(AllSignals.TargetChanged, (i, d) => i.HandleTargetChanged(d));
 }
 static ProjectileCreatorBehavior()
 {
     SignalEntryPoint.For <ProjectileCreatorBehavior>()
     .Register(AllSignals.TargetChanged, (i, d) => i.HandleTargetChanged(d));
 }
示例#8
0
 static RadiusBasedOnPayloadBehavior()
 {
     SignalEntryPoint.For <RadiusBasedOnPayloadBehavior>()
     .Register(AllSignals.Merged, (i, d) => i.HandleMerged(), AllPriorities.VeryLow);
 }
示例#9
0
 static MergeBehavior()
 {
     SignalEntryPoint.For <MergeBehavior>()
     .Register(AllSignals.Merged, (i, d) => i.HandleMerge(d));
 }