private void OnDirectionChanged(object sender, DirectionEventArgs e) { _joyDir = e.Direction; }
void SPlayer_OnDirectionEnablement(WorldObject sender, DirectionEventArgs e) { SendInfoMove(); }
public FaceEventArgs(FaceEventType type, DirectionEventArgs direction) { this.EventType = type; this.Direction = direction; }
protected virtual void OnDirectionChanged(Directions dir) { DirectionEventArgs dea = new DirectionEventArgs(dir); DirectionChanged?.Invoke(this, dea); }