Exemple #1
0
        /// <summary>
        /// Adds the specified unit.
        /// </summary>
        /// <param name="unit">The unit.</param>
        public virtual void Add(ILuaUndoUnit unit)
        {
            if (unit == null)
                throw new ArgumentNullException("unit");

            undoUnits.Add(unit);
        }
Exemple #2
0
        /// <summary>
        /// Adds the specified unit.
        /// </summary>
        /// <param name="unit">The unit.</param>
        public virtual void Add(ILuaUndoUnit unit)
        {
            if (unit == null)
            {
                throw new ArgumentNullException("unit");
            }

            undoUnits.Add(unit);
        }