0.2.1-ts.0 • Published 12 months ago

@rbxts/rubine-roblox v0.2.1-ts.0

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

rubine-roblox

CI License: MIT Typescript Version

A rubine extension for Roblox.

Usage

rubine-roblox should ideally be used alongside rubine itself. It's built as something that provides out of the box support for jabby and slightly easier setup, not as a framework.

-- server/main.server.luau
local rubinerbx = require("@pkg/rubine_roblox")

-- Sets up basic RunService events, see the function docs for more
rubinerbx.setup_default_phases()

rubinerbx.load_children(script.systems)
-- server/main.server.luau/systems
local scheduler = require("@pkg/rubine/scheduler")

return scheduler.on("heartbeat", function(dt: number)
    print(`Heartbeat, dt: {dt}`)
end)

Installation

Wally

  1. Add it to your wally manifest
[dependencies]
rubine_roblox = "mark-marks/rubine-roblox@LATEST" # Replace LATEST with the latest version
  1. wally install

NPM (roblox-ts)

  1. npm add @rbxts/rubine-roblox
  2. npm install
0.2.1-ts.0

12 months ago

0.2.0-ts.0

1 year ago

0.1.0-rc.11

1 year ago