File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change 3
3
![ image] ( https://github.com/user-attachments/assets/6ae0f927-ea1b-4d90-a809-4cc513e49b18 )
4
4
5
5
## Summary
6
- - Dynamic Systems are here! [ ^ 1 ]
7
- - it's now possible to query schedules, systems, and inject new event handlers from scripts themselves:
6
+ - Dynamic Systems are here! [ ^ 1 ] . it's now possible to query schedules, systems, and inject new event handlers from scripts themselves:
8
7
``` lua
9
8
local post_update_schedule = world .get_schedule_by_name (" PostUpdate" )
10
9
16
15
:after (test_system )
17
16
)
18
17
19
- local system_before = world .add_system (
20
- post_update_schedule ,
21
- system_builder (" custom_system_before" , script_id )
22
- :before (test_system )
23
- )
18
+ function custom_system_after ()
19
+ print (" i will run after the existing system in PostUpdate!" )
20
+ end
24
21
```
25
22
- ` WithWorldGuard ` and ` HandlerContext<Plugin> ` system parameters can be used in conjunction to create custom event handler systems
26
23
``` rust
You can’t perform that action at this time.
0 commit comments