コード例 #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="temp"></param>
 public void Copy(TreasureOptionsWrapper temp)
 {
     if (temp == null)
     {
         return;
     }
     this._auditory = temp._auditory.Clone();
     this._gOption  = temp._gOption.Clone();
     this._user     = temp._user.Clone();
 }
コード例 #2
0
 public void Copy(TreasureGame tmp)
 {
     if (tmp == null)
     {
         return;
     }
     this._nbZones   = tmp._nbZones;
     this._nbDepth   = tmp._nbDepth;
     this._nbCharges = tmp._nbCharges;
     this._isMaxGold = tmp._isMaxGold;
     this._MaxGold   = tmp._MaxGold;
     this._mdDetect  = tmp._mdDetect;
     this._mdDisplay = tmp._mdDisplay;
     this._mdOpacity = tmp._mdOpacity;
 }
コード例 #3
0
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        public TreasureGame Clone()
        {
            TreasureGame tmp = new TreasureGame();

            tmp._nbZones   = this._nbZones;
            tmp._nbDepth   = this._nbDepth;
            tmp._nbCharges = this._nbCharges;
            tmp._isMaxGold = this._isMaxGold;
            tmp._MaxGold   = this._MaxGold;
            tmp._mdDetect  = this._mdDetect;
            tmp._mdDisplay = this._mdDisplay;
            tmp._mdOpacity = this._mdOpacity;

            return(tmp);
        }
コード例 #4
0
 override public void EndEdit()
 {
     //throw new NotImplementedException();
     _tmpModel = null;
 }
コード例 #5
0
 override public void BeginEdit()
 {
     //throw new NotImplementedException();
     _tmpModel = this.Clone();
 }