Skip to content

Instantly share code, notes, and snippets.

@griffi-gh
Last active November 16, 2025 15:31
Show Gist options
  • Select an option

  • Save griffi-gh/6b04adcdb511aeed3161a6f93ad1a9f3 to your computer and use it in GitHub Desktop.

Select an option

Save griffi-gh/6b04adcdb511aeed3161a6f93ad1a9f3 to your computer and use it in GitHub Desktop.
Adds utility function to get `TickEvents` outside of `Component`
using. /Verse.org/Simulation
using. /Verse.org/Native
using. /Verse.org/SceneGraph
_dummy_component := class<final_super><unique>(component):
GetTickEvents_Internal<internal>(Component: component)<reads>: tick_events = Component.TickEvents;
(InComponent: component).GetTickEvents<public>()<transacts>: tick_events :=
Dummy := _dummy_component. Entity := InComponent.Entity;
Dummy.GetTickEvents_Internal(InComponent)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment