Beispiel #1
0
        public Wall()
        {
            observable   = new ObservableObject(this);
            HealthPoints = 20;
            ResizeTo(1, 1);

            observable.SubscribeForLifetime(nameof(HealthPoints), this.SizeOrPositionChanged.Fire, this.Lifetime);
        }
Beispiel #2
0
 public void SubscribeForLifetime(string propertyName, Action handler, ILifetimeManager lifetimeManager) => observable.SubscribeForLifetime(propertyName, handler, lifetimeManager);