コード例 #1
0
ファイル: DamageComponent.cs プロジェクト: Octanum/Corvus
 protected override void OnInitialize()
 {
     base.OnInitialize();
     AttributesComponent   = this.GetDependency <AttributesComponent>();
     CombatComponent       = Parent.GetComponent <CombatComponent>();
     MovementComponent     = this.GetDependency <MovementComponent>();
     FloatingTextComponent = this.GetDependency <FloatingTextComponent>();
 }
コード例 #2
0
 protected override void OnInitialize()
 {
     base.OnInitialize();
     MovementComponent   = this.GetDependency <MovementComponent>();
     PathComponent       = this.GetDependency <PathComponent>();
     MovementComponent   = this.GetDependency <MovementComponent>();
     CombatComponent     = this.GetDependency <CombatComponent>();
     PhysicsSystem       = Parent.Scene.GetSystem <PhysicsSystem>();
     PhysicsComponent    = this.GetDependency <PhysicsComponent>();
     AttributesComponent = this.GetDependency <AttributesComponent>();
     SpriteComponent     = this.GetDependency <SpriteComponent>();
     HealthBarComponent  = this.GetDependency <HealthBarComponent>();
     DamageComponent     = this.GetDependency <DamageComponent>();
 }
コード例 #3
0
 protected override void OnInitialize()
 {
     base.OnInitialize();
     AC             = this.GetDependency <AttributesComponent>();
     MC             = this.GetDependency <MovementComponent>();
     CC             = this.GetDependency <CombatComponent>();
     PC             = this.GetDependency <PhysicsComponent>();
     SC             = this.GetDependency <SpriteComponent>();
     EC             = this.GetDependency <EquipmentComponent>();
     ScoreComponent = this.GetDependency <ScoreComponent>();
     _IsAttacking   = false;
     if (!AC.IsDiedRegistered)
     {
         AC.Died += AC_Died;
     }
 }
コード例 #4
0
ファイル: AIComponent.cs プロジェクト: Octanum/Corvus
 protected override void OnInitialize()
 {
     base.OnInitialize();
     MovementComponent = this.GetDependency<MovementComponent>();
     PathComponent = this.GetDependency<PathComponent>();
     MovementComponent = this.GetDependency<MovementComponent>();
     CombatComponent = this.GetDependency<CombatComponent>();
     PhysicsSystem = Parent.Scene.GetSystem<PhysicsSystem>();
     PhysicsComponent = this.GetDependency<PhysicsComponent>();
     AttributesComponent = this.GetDependency<AttributesComponent>();
     SpriteComponent = this.GetDependency<SpriteComponent>();
     HealthBarComponent = this.GetDependency<HealthBarComponent>();
     DamageComponent = this.GetDependency<DamageComponent>();
 }
コード例 #5
0
 protected override void OnInitialize()
 {
     base.OnInitialize();
     AC = this.GetDependency<AttributesComponent>();
     MC = this.GetDependency<MovementComponent>();
     CC = this.GetDependency<CombatComponent>();
     PC = this.GetDependency<PhysicsComponent>();
     SC = this.GetDependency<SpriteComponent>();
     EC = this.GetDependency<EquipmentComponent>();
     ScoreComponent = this.GetDependency<ScoreComponent>();
     _IsAttacking = false;
     if (!AC.IsDiedRegistered)
         AC.Died += AC_Died;
 }
コード例 #6
0
ファイル: DamageComponent.cs プロジェクト: Octanum/Corvus
 protected override void OnInitialize()
 {
     base.OnInitialize();
     AttributesComponent = this.GetDependency<AttributesComponent>();
     CombatComponent = Parent.GetComponent<CombatComponent>();
     MovementComponent = this.GetDependency<MovementComponent>();
     FloatingTextComponent = this.GetDependency<FloatingTextComponent>();
 }