Exemplo n.º 1
0
 protected void PhotonSystemOnJoinedRoomHandler(uFrame.ECS.OnJoinedRoomDispatcher data, LobbyButton source) {
     var handler = PhotonSystemOnJoinedRoomHandlerInstance;
     handler.System = this;
     handler.Event = data;
     handler.Source = source;
     StartCoroutine(handler.Execute());
 }
Exemplo n.º 2
0
 protected void LobbySystemPointerClickFilter(uFrame.ECS.PointerClickDispatcher data) {
     var SourceLobbyButton = LobbyButtonManager[data.EntityId];
     if (SourceLobbyButton == null) {
         return;
     }
     this.LobbySystemPointerClickHandler(data, SourceLobbyButton);
 }
Exemplo n.º 3
0
 protected void PhotonSystemOnJoinedRoomFilter(uFrame.ECS.OnJoinedRoomDispatcher data) {
     var SourceLobbyButton = LobbyButtonManager[data.EntityId];
     if (SourceLobbyButton == null) {
         return;
     }
     this.PhotonSystemOnJoinedRoomHandler(data, SourceLobbyButton);
 }
Exemplo n.º 4
0
 public override void CubesAdded(uFrame.MVVM.ViewBase view)
 {
     float x = UnityEngine.Random.Range(0.25f, 0.75f);
     float y = UnityEngine.Random.Range(0.25f, 0.75f);
     Vector3 viewPort = new Vector3(x, y, 10f);
     view.transform.position = Camera.main.ViewportToWorldPoint(viewPort);
 }
Exemplo n.º 5
0
 protected void LobbySystemPointerClickHandler(uFrame.ECS.PointerClickDispatcher data, LobbyButton source) {
     var handler = LobbySystemPointerClickHandlerInstance;
     handler.System = this;
     handler.Event = data;
     handler.Source = source;
     StartCoroutine(handler.Execute());
 }
 protected virtual void DemoPlayerSystemPointerClickHandler(uFrame.ECS.MouseDownDispatcher data, ClickCount source) {
     var handler = new DemoPlayerSystemPointerClickHandler();
     handler.System = this;
     handler.Event = data;
     handler.Source = source;
     handler.Execute();
 }
Exemplo n.º 7
0
 protected void PhotonSystemGameReadyHandler(uFrame.Kernel.GameReadyEvent data, Driver group) {
     var handler = PhotonSystemGameReadyHandlerInstance;
     handler.System = this;
     handler.Event = data;
     handler.Group = group;
     StartCoroutine(handler.Execute());
 }
Exemplo n.º 8
0
 protected override void InitializeViewModel(uFrame.MVVM.ViewModel model)
 {
     base.InitializeViewModel(model);
     // NOTE: this method is only invoked if the 'Initialize ViewModel' is checked in the inspector.
     // var vm = model as GameCoreViewModel;
     // This method is invoked when applying the data from the inspector to the viewmodel.  Add any view-specific customizations here.
 }
Exemplo n.º 9
0
 protected override void HandleDestroyOnCollisionHandler(uFrame.ECS.OnTriggerEnterDispatcher data, DestroyOnCollision source)
 {
     var handler = new HandleDestroyOnCollisionHandler();
     handler.System = this;
     handler.Event = data;
     handler.Source = source;
     handler.Execute();
 }
 protected override void InitializeViewModel(uFrame.MVVM.ViewModel model) {
     base.InitializeViewModel(model);
     // NOTE: this method is only invoked if the 'Initialize ViewModel' is checked in the inspector.
     // var vm = model as LevelRootViewModel;
     // This method is invoked when applying the data from the inspector to the viewmodel.  Add any view-specific customizations here.
     var levelrootview = ((LevelRootViewModel)model);
     levelrootview.CurrentLevel = this._CurrentLevel;
 }
Exemplo n.º 11
0
 protected void PhotonSystemGameReadyFilter(uFrame.Kernel.GameReadyEvent data) {
     var DriverItems = DriverManager.Components;
     for (var DriverIndex = 0
     ; DriverIndex < DriverItems.Count; DriverIndex++
     ) {
         this.PhotonSystemGameReadyHandler(data, DriverItems[DriverIndex]);
     }
 }
Exemplo n.º 12
0
 protected void GameReadyEventHandler(uFrame.Kernel.GameReadyEvent data, Box group)
 {
     var handler = GameReadyEventHandlerInstance;;
     handler.System = this;
     handler.Event = data;
     handler.Group = group;
     handler.Execute();
 }
Exemplo n.º 13
0
 protected override void UISystemPointerClickDispatcherHandler(uFrame.ECS.PointerClickDispatcher data, PlayGameButton source)
 {
     var handler = new UISystemPointerClickDispatcherHandler();
     handler.System = this;
     handler.Event = data;
     handler.Source = source;
     handler.Execute();
 }
Exemplo n.º 14
0
    protected override void InitializeViewModel(uFrame.MVVM.ViewModel model) {
        base.InitializeViewModel(model);
        // NOTE: this method is only invoked if the 'Initialize ViewModel' is checked in the inspector.
        // var vm = model as PlayerViewModel;
        // This method is invoked when applying the data from the inspector to the viewmodel.  Add any view-specific customizations here.
		//Debug.Log("Max_Quantity = " + Max_Quantity);
		gSHexGridManager = GameObject.Find("HexMapGrid").GetComponent<GSHexGridManager>();
	}
Exemplo n.º 15
0
 protected override void PlayerSystemOnCollisionEnterHandler(uFrame.ECS.OnTriggerEnterDispatcher data, Hazard collider, PlayerGunner source)
 {
     var handler = new PlayerSystemOnCollisionEnterHandler();
     handler.System = this;
     handler.Event = data;
     handler.Collider = collider;
     handler.Source = source;
     handler.Execute();
 }
Exemplo n.º 16
0
 protected void GameReadyEventFilter(uFrame.Kernel.GameReadyEvent data)
 {
     var BoxItems = BoxManager.Components;
     for (var BoxIndex = 0
     ; BoxIndex < BoxItems.Count; BoxIndex++
     ) {
         this.GameReadyEventHandler(data, BoxItems[BoxIndex]);
     }
 }
 protected void DemoPlayerSystemPointerClickFilter(uFrame.ECS.MouseDownDispatcher data) {
     var SourceClickCount = ClickCountManager[data.EntityId];
     if (SourceClickCount == null) {
         return;
     }
     if (!SourceClickCount.Enabled) {
         return;
     }
     this.DemoPlayerSystemPointerClickHandler(data, SourceClickCount);
 }
 protected void DisableAllNotificationUIFilter(uFrame.Kernel.GameReadyEvent data) {
     var NotificationUIItems = NotificationUIManager.Components;
     for (var NotificationUIIndex = 0
     ; NotificationUIIndex < NotificationUIItems.Count; NotificationUIIndex++
     ) {
         if (!NotificationUIItems[NotificationUIIndex].Enabled) {
             continue;
         }
         this.DisableAllNotificationUIHandler(data, NotificationUIItems[NotificationUIIndex]);
     }
 }
 protected override void InitializeViewModel(uFrame.MVVM.ViewModel model) {
     base.InitializeViewModel(model);
     // NOTE: this method is only invoked if the 'Initialize ViewModel' is checked in the inspector.
     // var vm = model as MainGameRootViewModel;
     // This method is invoked when applying the data from the inspector to the viewmodel.  Add any view-specific customizations here.
     var maingamerootview = ((MainGameRootViewModel)model);
     maingamerootview.GameState = this._GameState;
     maingamerootview.HexGridMatching = this._HexGridMatching;
     maingamerootview.SoldierCount = this._SoldierCount;
     maingamerootview.EnemyCount = this._EnemyCount;
 }
 protected override void InitializeViewModel(uFrame.MVVM.ViewModel model) {
     base.InitializeViewModel(model);
     // NOTE: this method is only invoked if the 'Initialize ViewModel' is checked in the inspector.
     // var vm = model as TestViewModel;
     // This method is invoked when applying the data from the inspector to the viewmodel.  Add any view-specific customizations here.
     var testview = ((TestViewModel)model);
     testview.Name = this._Name;
     testview.IsAmazing = this._IsAmazing;
     testview.Complex = this._Complex;
     testview.Reference = this._Reference;
     testview.SomeUnityType = this._SomeUnityType;
 }
    protected override void InitializeViewModel(uFrame.MVVM.ViewModel model) {
        base.InitializeViewModel(model);
		//gameOverText = GameObject.Find("Text_GameOver").GetComponent<Text>();
		gameOverText.gameObject.SetActive(false);
		//TextAsset atkInfo = Resources.Load<TextAsset> ("ATK_Info");
        // NOTE: this method is only invoked if the 'Initialize ViewModel' is checked in the inspector.
        // var vm = model as MainGameRootViewModel;
        // This method is invoked when applying the data from the inspector to the viewmodel.  Add any view-specific customizations here.
		InfoText.text = missionInfo.text;
		gSHexGridManager = GameObject.Find("HexMapGrid").GetComponent<GSHexGridManager>();

		for (int i = 1; i <= 5; i++)
			SoldierVM.Add(uFrameKernel.Container.Resolve<SoldierViewModel>("Soldier" + i));


	}
Exemplo n.º 22
0
 public SettingsScreenViewModel(uFrame.Kernel.IEventAggregator aggregator)
     : base(aggregator)
 {
 }
Exemplo n.º 23
0
 public AnimalState(uFrame.MVVM.ViewModel vm, string propertyName)
     : base(vm, propertyName)
 {
 }
Exemplo n.º 24
0
 public InGameStateMachine(uFrame.MVVM.ViewModel vm, string propertyName)
     : base(vm, propertyName)
 {
 }
Exemplo n.º 25
0
 protected void UISystemPointerClickDispatcherFilter(uFrame.ECS.PointerClickDispatcher data)
 {
     var SourcePlayGameButton = PlayGameButtonManager[data.EntityId];
     if (SourcePlayGameButton == null) {
         return;
     }
     if (!SourcePlayGameButton.Enabled) {
         return;
     }
     this.UISystemPointerClickDispatcherHandler(data, SourcePlayGameButton);
 }
Exemplo n.º 26
0
 public override void DisposingViewModel(uFrame.MVVM.ViewModel viewModel)
 {
     base.DisposingViewModel(viewModel);
     AnimalViewModelManager.Remove(viewModel);
 }
Exemplo n.º 27
0
 public override void Initialize(uFrame.MVVM.ViewModel viewModel)
 {
     base.Initialize(viewModel);
     // This is called when a viewmodel is created
     this.InitializeInGameRoot(((InGameRootViewModel)(viewModel)));
 }
Exemplo n.º 28
0
 public override void Initialize(uFrame.MVVM.ViewModel viewModel)
 {
     base.Initialize(viewModel);
     // This is called when a viewmodel is created
     this.InitializeGreenFrogAnimal(((GreenFrogAnimalViewModel)(viewModel)));
 }
Exemplo n.º 29
0
 public SubScreenViewModelBase(uFrame.Kernel.IEventAggregator aggregator)
     : base(aggregator)
 {
 }
Exemplo n.º 30
0
 public LevelSelectScreenViewModelBase(uFrame.Kernel.IEventAggregator aggregator)
     : base(aggregator)
 {
 }