Load() private method

private Load ( ) : int
return int
Beispiel #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="url"></param>
        /// <returns>0 if good, 1 if error with retry, 2 if error with override</returns>
        private int LoadRoom(int id, bool isDoor)
        {
            Room tmp = new Room(this, id);

            tmp.IsDoor = isDoor;
            int r = tmp.Load();

            if (r == 0)
            {
                Location = tmp;
            }
            return(r);
        }
Beispiel #2
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="url"></param>
 /// <returns>0 if good, 1 if error with retry, 2 if error with override</returns>
 private int LoadRoom(int id, bool isDoor)
 {
     Room tmp = new Room(this, id);
     tmp.IsDoor = isDoor;
     int r = tmp.Load();
     if (r == 0)
         Location = tmp;
     return r;
 }