Example #1
0
 /// <summary>
 /// Calls the current event with key data
 /// </summary>
 /// <param name="key">key data to call with</param>
 public virtual void CallEvent(Keys key)
 {
     Snippets?.Invoke(key, Vector2.Zero);
 }
Example #2
0
 /// <summary>
 /// Calls the current event with location data
 /// </summary>
 /// <param name="location">location to call with</param>
 public virtual void CallEvent(Vector2 location)
 {
     Snippets?.Invoke(Keys.Clear, location);
 }
Example #3
0
 /// <summary>
 /// Calls the current event with no data
 /// </summary>
 public virtual void CallEvent()
 {
     Snippets?.Invoke(Keys.Clear, Vector2.Zero);
 }