コード例 #1
0
        public override void Apply(SystemArgs args)
        {
            ISystem system = Identifier != null?args.World.GetSystem(Identifier.Value) : args.World.GetSystem(Name);

            var applyTo = args.GetTarget(Target);

            var applyArgs = new SystemArgs(args.World, args.UserInterface, Intensity, args.AggressorIfAny, applyTo, args.Round);

            if (All)
            {
                system.ApplyToAll(args.Room.Actors, applyArgs);
            }
            else
            {
                system.Apply(applyArgs);
            }
        }