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