Skip to content

Commit

Permalink
docs: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jolexxa committed Oct 2, 2024
1 parent d8bda71 commit 9a2e95c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ using Godot;

// Apply all of the AutoInject mixins at once:
[Meta(typeof(IAutoNode))]
public partial class MyNode : Node { }
public partial class MyNode : Node {
public override void _Notification(int what) => this.Notify(what);
}
```

Alternatively, you can use just the mixins you need from this project.
Expand All @@ -66,7 +68,9 @@ Alternatively, you can use just the mixins you need from this project.
typeof(IProvider),
typeof(IDependent)
)]
public partial class MyNode : Node { }
public partial class MyNode : Node {
public override void _Notification(int what) => this.Notify(what);
}
```

> [!IMPORTANT]
Expand Down

0 comments on commit 9a2e95c

Please sign in to comment.