예제 #1
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();
        }
예제 #2
0
        }                                           // if true, remove a buff, else remove a debuff

        public DispelEffect(DispelTypes dispelType, bool offensive)
        {
            DispelType = dispelType;
            Offensive  = offensive;
        }