@rbxts/ohmyprvd-lifecycles
TypeScript icon, indicating that this package has built-in type declarations

0.2.0-dev.2 • Public • Published

Oh My Prvd Lifecycles

This package implements a "small" amount of lifecycle events for providers.

We'll admit. We've gotten a bit too lifecycle happy:

  • :onPostSimulation(dt: number) runs every RunService.PostSimulation
  • :onPreSimulation(dt: number) runs every RunService.PreSimulation
  • :onPreRender(dt: number) runs every RunService.PreRender
  • :onPlayerAdded(player: Player) runs every Player.PlayerAdded
  • :onPlayerLeaving(player: Player) runs every Player.PlayerLeaving
  • :onShutdown() binds to game:BindToClose for games and plugin.Unloading for plugins

Readme

Keywords

none

Package Sidebar

Install

npm i @rbxts/ohmyprvd-lifecycles

Weekly Downloads

0

Version

0.2.0-dev.2

License

ISC

Unpacked Size

1.18 kB

Total Files

2

Last publish

Collaborators

  • znotfireman