public RoundController(RoundModel model, RoundView view) { _model = model; _view = view; _model.CurrentRound = 1; _view.Model = _model; }
public static void SetBackgroundRound(this View view, float radius, Color color) { view?.OnLayout(() => { var round = new RoundView(); round.Color = color; round.Radius = radius; view.SetBackgroundCompat(round); }); }
private async Task CreateRoundMVCAsync() { RoundModel roundModel = RoundFactory.Instance.CreateRoundModel(); RoundView roundView = await RoundFactory.Instance.CreateRoundView(_view.GameAreaView); _roundController = RoundFactory.Instance.CreateRoundController(roundModel, roundView); _roundController.Initialize(); _timeController.RequestCurrentScore += _roundController.OnRequestCurrentScore; RoundFinish += _roundController.OnRoundFinish; }
public static void SetBackgroundRoundWithBorder(this View view, float radius, Color color, Color borderColor, float borderWidth) { view?.OnLayout(() => { var round = new RoundView(); round.Color = color; round.BorderColor = borderColor; round.LineWidth = borderWidth; round.Radius = radius; view.SetBackgroundCompat(round); }); }
public RoundController CreateRoundController(RoundModel roundModel, RoundView roundView) { return(new RoundController(roundModel, roundView)); }