/// <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); }
/// <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; }