예제 #1
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="field">The conditional int field to construct.</param>
 public ConditionIntField(ConditionIntField field)
 {
     name             = field.name;
     value            = field.value;
     objectType       = field.objectType;
     objectID         = field.objectID;
     objectName       = field.objectName;
     heroGUID         = field.heroGUID;
     propertyID       = field.propertyID;
     targetHeroObject = field.targetHeroObject;
     fieldType        = field.fieldType;
     fieldID          = field.fieldID;
     fieldValue       = field.fieldValue;
     heroObject       = field.heroObject;
 }
예제 #2
0
        // --------------------------------------------------------------
        // Methods
        // --------------------------------------------------------------

        /// <summary>
        /// Clone the condition int field, remove references.
        /// </summary>
        /// <param name="field">The condition int field to clone.</param>
        /// <returns>The cloned condition int field.</returns>
        public ConditionIntField Clone(ConditionIntField field)
        {
            ConditionIntField temp = new ConditionIntField();

            temp.name             = field.name;
            temp.value            = field.value;
            temp.objectType       = field.objectType;
            temp.objectID         = field.objectID;
            temp.objectName       = field.objectName;
            temp.heroGUID         = field.heroGUID;
            temp.propertyID       = field.propertyID;
            temp.targetHeroObject = field.targetHeroObject;
            temp.fieldType        = field.fieldType;
            temp.fieldID          = field.fieldID;
            temp.fieldValue       = field.fieldValue;
            temp.heroObject       = field.heroObject;
            return(temp);
        }