/// <summary> /// /// </summary> /// <param name="dressingToModify"></param> /// <returns></returns> public Dressing Modify_Dressing(Dressing dressingToModify) { try { //TODO: MODIFY_DRESSING TO IMPLEMENT return(new Dressing()); } catch (Exception ex) { return(new Dressing()); } }
/// <summary> /// /// </summary> /// <param name="dressingToAdd"></param> /// <returns></returns> public bool Add_Dressing(Dressing dressingToAdd) { try { this.dressingList.Add(dressingToAdd); return(true); } catch (Exception ex) { return(false); } }
/// <summary> /// /// </summary> /// <param name="dressingToDelete"></param> /// <returns></returns> public bool Delete_Dressing(Dressing dressingToDelete) { try { this.dressingList.Remove(dressingToDelete); return(true); } catch (Exception ex) { return(false); } }
// Bestaat uit een grootte, opgeruimd / smerig, en heeft aankleding. // Daarnaast kan een kamer baddies bevatten, items of een doorgang zijn. private void GenerateRoom() { Random r = new Random(); int rInt = r.Next(0, 100); double sizeChance = r.NextDouble() * 100; if (sizeChance >= 85) { this.size = Size.Large; } else if (sizeChance >= 60) { this.size = Size.Medium; } else { this.size = Size.Small; } double cleanliness = r.NextDouble() * 100; if (cleanliness >= 70) { this.cleanliness = Cleanliness.Clean; } else { this.cleanliness = Cleanliness.Dirty; } double dressing = r.NextDouble() * 100; if (dressing >= 80) { this.dressing = Dressing.Bed; } else if (dressing >= 60) { this.dressing = Dressing.Chairs; } else { this.dressing = Dressing.Empty; } }
private static void Dress_OnCommand(CommandEventArgs e) { Dressing instance; if (!Dressing.Running) { instance = new Dressing(); } Mobile from = e.Mobile; if (CanBegin(from)) { from.Target = new DressingCommand.InternalTarget(); from.SendMessage("Target a container to equip up."); from.SendMessage("Or target yourself to access menu."); } }
void Awake() { var main = GameObject.FindGameObjectWithTag("GameController"); sceneController = main.GetComponent<Dressing>(); }
public Dressing UpdateDressing(Dressing vDressing) { throw new NotImplementedException(); }
public bool UnDeleteDressing(Dressing vDressing) { throw new NotImplementedException(); }
public Coffee AddDressing(Dressing dress) { dress.coffee = this; return(dress); }