public void IsInstanceOfType()
		{
			var adapter = new TypeAdapter( typeof(Casted) );
			var instance = new Casted( 6776 );
			Assert.True( adapter.IsInstanceOfType( instance ) );
			Assert.Equal( 6776, instance.Item );
		}
Example #2
0
 public void Cast(Skill skill)
 {
     ApplyModifiers();
     skill.Use(Subject, Object);
     Casted?.Invoke();
 }
Example #3
0
 protected virtual void OnCast()
 {
     Casted?.Invoke(this);
 }