コード例 #1
0
 public WaterRuneSpell()
     : base(new BasicObjectInformation(abName, abDescription))
 {
     UnityEngine.Debug.Log("added behaviors to list");
     //  AbilityBehaviors.Add(new Ranged(10f, 20f));
     AbilityBehaviors.Add(new AreaOfEffect(20f, 3f, baseEffectDamage)); //radius size, how long, and damage
 }
コード例 #2
0
ファイル: Ability.cs プロジェクト: csecong/Mud.Net
        }                                           // IReadOnlyCollection

        #endregion

        public Ability(int id, string name, AbilityTargets target, AbilityBehaviors behavior, AbilityKinds kind, ResourceKinds resourceKind, AmountOperators costType, int costAmount, int globalCooldown, int cooldown, int duration, SchoolTypes school, AbilityMechanics mechanic, DispelTypes dispelType, AbilityFlags flags, params AbilityEffect[] effects)
        {
            Id             = id;
            Name           = name;
            Target         = target;
            Behavior       = behavior;
            Kind           = kind;
            ResourceKind   = resourceKind;
            CostType       = costType;
            CostAmount     = costAmount;
            GlobalCooldown = globalCooldown;
            Cooldown       = cooldown;
            Duration       = duration;
            School         = school;
            Mechanic       = mechanic;
            DispelType     = dispelType;
            Flags          = flags;
            Effects        = effects?.ToList();
        }