public virtual IEnumerator PlayCoroutine()
        {
            IEnumerator playCoroutine = this.PlayCoroutine(ResourcePlayer, (player) => OnPlayStart.Invoke(player), (player) => OnPlayFinish.Invoke(player));

            ResourcePlayer.StartCoroutine(playCoroutine);
            return(playCoroutine);
        }
        public virtual void Reset()
        {
            Delay        = 0f;
            OnPlayStart  = delegate { };
            OnPlayFinish = delegate { };

            ResourcePlayer.Reset();
        }
Beispiel #3
0
        public ViewModelConquer(
            ResourceConquer resourceConquer,
            ResourcePlayer resourcePlayer)
        {
            _resourceConquer = resourceConquer;
            _resourcePlayer  = resourcePlayer;

            ConquerCollection = CollectionViewSource.GetDefaultView(_resourceConquer.GetConquerList().OrderByDescending(x => x.Time));
            //ConquerCollection.Filter = new Predicate<object>( Filter );
        }
Beispiel #4
0
 public ClipboardHandler(
     ResourcePlayer resourcePlayer,
     ResourceTroup resourceTroup,
     ResourceVillage resourceVillage,
     GroupHandler groupHandler)
 {
     _resourcePlayer  = resourcePlayer;
     _resourceTroup   = resourceTroup;
     _resourceVillage = resourceVillage;
     _groupHandler    = groupHandler;
 }
Beispiel #5
0
 public ViewModelHome(
     Server server,
     Profile profile,
     ResourceAlly resourceAlly,
     ResourcePlayer resourcePlayer,
     ResourceVillage resourceVillage,
     ResourceConquer resourceConquer)
 {
     _server          = server;
     _profile         = profile;
     _resourceAlly    = resourceAlly;
     _resourcePlayer  = resourcePlayer;
     _resourceVillage = resourceVillage;
     _resourceConquer = resourceConquer;
 }
Beispiel #6
0
        public ViewModelTroupList(
            Profile profile,
            Server server,
            ResourcePlayer resourcePlayer,
            ResourceVillage resourceVillage,
            ResourceHandler resourceHandler)
        {
            _profile         = profile;
            _server          = server;
            _resourcePlayer  = resourcePlayer;
            _resourceVillage = resourceVillage;
            _resourceHandler = resourceHandler;

            //TroupCollection = CollectionViewSource.GetDefaultView( _resourceVillage.GetVillagesByPlayer( _resourcePlayer.GetPlayerByName( _profile.Local.Name ) ).OrderBy( x => x.Id ) );
            TroupCollection = CollectionViewSource.GetDefaultView(_resourceHandler.CreateTroupList( ));
        }
Beispiel #7
0
 public ResourceHandler(
     Server server,
     Profile profile,
     ResourcePlayer resourcePlayer,
     ResourceAlly resourceAlly,
     ResourceConquer resourceConquer,
     ResourceTroup resourceTroup,
     ResourceVillage resourceVillage,
     ResourceBashpointPlayer resourceBashpointPlayer,
     ResourceBashpointAlly resourceBashpointAlly,
     GroupHandler groupHandler)
 {
     _server                  = server;
     _profile                 = profile;
     _resourcePlayer          = resourcePlayer;
     _resourceAlly            = resourceAlly;
     _resourceConquer         = resourceConquer;
     _resourceTroup           = resourceTroup;
     _resourceVillage         = resourceVillage;
     _resourceBashpointPlayer = resourceBashpointPlayer;
     _resourceBashpointAlly   = resourceBashpointAlly;
     _groupHandler            = groupHandler;
 }
 public void SetParentTransform(Transform parent)
 => ResourcePlayer.SetParentTransform(parent);
 public void SetLocalPosition(Vector3 position)
 => ResourcePlayer.SetLocalPosition(position);
 public void SetWorldPosition(Vector3 position)
 => ResourcePlayer.SetWorldPosition(position);
 public void StopCoroutine(IEnumerator routine)
 => ResourcePlayer.StopCoroutine(routine);
 public Coroutine StartCoroutine(IEnumerator routine)
 => ResourcePlayer.StartCoroutine(routine);
 public void Stop()
 => ResourcePlayer.Stop();
 public void SetLoop(bool isLoop)
 => ResourcePlayer.SetLoop(isLoop);
 public bool IsPlayingResource()
 => ResourcePlayer.IsPlayingResource();
 public string GetEffectID() => ResourcePlayer.GetEffectID();