protected override void _UpdateInterior() { FirstDesk.SetLocation(Left + Data.DeskOneX, Floor); FirstDesk.Computer.SetLocation(FirstDesk.GetX() + (FirstDesk.GetWidth() - FirstDesk.Computer.GetWidth()) / 2.0f, FirstDesk.GetY() + FirstDesk.GetHeight() + 0.04f); SecondDesk.SetLocation(Left + Data.DeskTwoX, Floor); SecondDesk.Computer.SetLocation(SecondDesk.GetX() + (SecondDesk.GetWidth() - SecondDesk.Computer.GetWidth()) / 2.0f, SecondDesk.GetY() + SecondDesk.GetHeight() + 0.04f); ThirdDesk.SetLocation(Left + Data.DeskThreeX, Floor); ThirdDesk.Computer.SetLocation(ThirdDesk.GetX() + (ThirdDesk.GetWidth() - ThirdDesk.Computer.GetWidth()) / 2.0f, ThirdDesk.GetY() + ThirdDesk.GetHeight() + 0.04f); FourthDesk.SetLocation(Left + Data.DeskFourX, Floor); FourthDesk.Computer.SetLocation(FourthDesk.GetX() + (FourthDesk.GetWidth() - FourthDesk.Computer.GetWidth()) / 2.0f, FourthDesk.GetY() + FourthDesk.GetHeight() + 0.04f); FirstLamp.Left = Left + Data.LampOneX; FirstLamp.Bottom = Floor + Height - FirstLamp.Height; SecondLamp.Left = Left + Data.LampTwoX; SecondLamp.Bottom = Floor + Height - SecondLamp.Height; ThirdLamp.Left = Left + Data.LampThreeX; ThirdLamp.Bottom = Floor + Height - ThirdLamp.Height; }
public override Boolean CanDestroy() { return((FirstDesk.IsFree() == true) && (SecondDesk.IsFree() == true) && (ThirdDesk.IsFree() == true) && (FourthDesk.IsFree() == true)); }