Exemplo n.º 1
0
        public void RemoveMono(MonoViewModel monoViewModel)
        {
            Debug.Assert(this.monoViewModels.Contains(monoViewModel), "消去予定のものが存在しません");
            Object.DisAppear(monoViewModel.MonoView.gameObject);
            monoViewModels.Remove(monoViewModel);

            // 消去
            this.monoViewRemoveService.Execute(monoViewModel);
        }
Exemplo n.º 2
0
        public MonoViewModel CreateMono(PlayerMonoViewModel playerMonoViewModel, Vector3 position)
        {
            var instance = Object.AppearToFloor(playerMonoViewModel.MonoInfo.MonoPrefab, root, position);
            var monoView = instance.GetComponent <MonoView> ();

            Debug.Assert(monoView != null, "monoViewではありません");

            var monoViewModel = new MonoViewModel(monoView, playerMonoViewModel);

            monoViewModels.Add(monoViewModel);

            return(monoViewModel);
        }
Exemplo n.º 3
0
        public MonoViewModel CreateMono(MonoInfo monoInfo, Vector3 position)
        {
            var instance = Object.AppearToFloor(monoInfo.MonoPrefab, root, position);
            var monoView = instance.GetComponent <MonoView> ();

            Debug.Assert(monoView != null, "monoViewではありません");

            // プレイヤー情報の作成
            var playerMonoViewModel = this.monoViewCreateService.Execute(monoInfo.Id);

            var monoViewModel = new MonoViewModel(monoView, playerMonoViewModel);

            monoViewModels.Add(monoViewModel);

            return(monoViewModel);
        }
Exemplo n.º 4
0
 public void RegisterMade(MonoViewModel monoViewModel)
 {
     this.MonoViewModel = monoViewModel;
     this.PlayerArrangementTargetModel.SetPlayerMonoView(monoViewModel.PlayerMonoViewModel);
 }
Exemplo n.º 5
0
 public void Execute(MonoViewModel monoViewModel)
 {
     Debug.Assert(monoViewModel.PlayerMonoViewModel != null, "MonoViewRemoveServiceが開始できません");
     this.playerMonoViewRepository.Remove(monoViewModel.PlayerMonoViewModel);
 }
 public void Execute(IPlayerArrangementTarget playerArrangementTarget, MonoViewModel monoViewModel)
 {
     playerArrangementTarget.RegisterMade(monoViewModel);
     this.playerArrangementTargetRepository.Store(playerArrangementTarget.PlayerArrangementTargetModel);
 }
Exemplo n.º 7
0
 public void RegisterMade(MonoViewModel monoViewModel)
 {
     this.MonoViewModel = monoViewModel;
 }