Example #1
0
 void ReleaseSkill(SkillControlComponent skillControlComp)
 {
     foreach (SkillName s in skillControlComp.SkillControlList)
     {
         skillControlComp.SkillControlDictionary[s] = false;
     }
 }
Example #2
0
 public NewAISystem(Entity player, List <BardComponent> bardComponents, List <CooldownComponent> cooldownComponents, List <ModifierStateComponent> modifierStateComponents, List <OverTimeStateComponent> overtimeStateComponents, List <SkillBaseComponent> skillBaseComponents, List <SkillControlComponent> skillControlComponents, List <TargetComponent> targetComponents)
 {
     this.player          = player;
     heavyShotBaseComp    = skillBaseComponents.Find(x => x.Name == SkillName.HeavyShot);
     heavyShotCdComp      = cooldownComponents.Find(x => x.Parent == heavyShotBaseComp.Parent);
     modStateComponent    = modifierStateComponents.Find(x => x.Parent == player);
     straightShotBaseComp = skillBaseComponents.Find(x => x.Name == SkillName.StraightShot);
     barrageBaseComp      = skillBaseComponents.Find(x => x.Name == SkillName.Barrage);
     barrageCooldownComp  = cooldownComponents.Find(x => x.Parent == barrageBaseComp.Parent);
     wmBaseComp           = skillBaseComponents.Find(x => x.Name == SkillName.TheWanderersMinuet);
     wmCooldownComp       = cooldownComponents.Find(x => x.Parent == wmBaseComp.Parent);
     mbBaseComp           = skillBaseComponents.Find(x => x.Name == SkillName.MagesBallad);
     mbCooldownComp       = cooldownComponents.Find(x => x.Parent == mbBaseComp.Parent);
     apBaseComp           = skillBaseComponents.Find(x => x.Name == SkillName.ArmysPaeon);
     apCooldownComp       = cooldownComponents.Find(x => x.Parent == apBaseComp.Parent);
     eaBaseComp           = skillBaseComponents.Find(x => x.Name == SkillName.EmpyrealArrow);
     eaCooldownComp       = cooldownComponents.Find(x => x.Parent == eaBaseComp.Parent);
     blBaseComp           = skillBaseComponents.Find(x => x.Name == SkillName.Bloodletter);
     blCooldownComp       = cooldownComponents.Find(x => x.Parent == blBaseComp.Parent);
     rsBaseComp           = skillBaseComponents.Find(x => x.Name == SkillName.RagingStrikes);
     rsCooldownComp       = cooldownComponents.Find(x => x.Parent == rsBaseComp.Parent);
     ppBaseComp           = skillBaseComponents.Find(x => x.Name == SkillName.PitchPerfect);
     ppCooldownComp       = cooldownComponents.Find(x => x.Parent == ppBaseComp.Parent);
     swBaseComp           = skillBaseComponents.Find(x => x.Name == SkillName.Sidewinder);
     swCooldownComp       = cooldownComponents.Find(x => x.Parent == swBaseComp.Parent);
     targComp             = targetComponents.Find(x => x.Parent == player);
     targOtComp           = overtimeStateComponents.Find(x => x.Parent == targComp.Target);
     brdComp          = bardComponents.Find(x => x.Parent == player);
     skillControlComp = skillControlComponents.Find(x => x.Parent == player);
 }
Example #3
0
 void UseSkill(SkillControlComponent skillControlComp, SkillName skill)
 {
     foreach (SkillName s in skillControlComp.SkillControlList)
     {
         if (s == skill)
         {
             skillControlComp.SkillControlDictionary[s] = true;
         }
         else
         {
             skillControlComp.SkillControlDictionary[s] = false;
         }
     }
 }