コード例 #1
0
 /// <summary>
 /// Prototyping constructor
 /// Initializes a new instance of the <see cref="RPG.ItemSystem.ISObject"/> class using values of the other instance of that class.
 /// </summary>
 /// <param name="RHS">Instance, used as a prototype.</param>
 public ISObject(ISObject RHS)
 {
     base.Clone (RHS);
     Clone (RHS);
 }
コード例 #2
0
        /// <summary>
        /// Makes this instance a clone of the specified Prototype.
        /// </summary>
        /// <param name="Prototype">Prototype.</param>
        public void Clone(ISObject Prototype)
        {
            base.Clone (Prototype);

            m_Quality = Prototype.Quality;
            m_Description = Prototype.Description;
            m_Price = Prototype.Price;
            m_Weight = Prototype.Weight;
        }