Skip to content

A simple class that handles everything needed to bootstrap a Matter world including hot-reloading, live debug, networking (using @rbxts/yetanothernet), and component replication.

Notifications You must be signed in to change notification settings

cmumme/matter-bootstrap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@rbxts/matter-bootstrap

A simple class that handles everything needed to bootstrap a Matter world including hot-reloading, live debug, networking (using @rbxts/yetanothernet), and component replication.

// server/index.ts
import { ServerStorage } from "@rbxts/services"
import MatterBootstrap from "@rbxts/matter-bootstrap"
import { Components } from "shared/components"

new MatterBootstrap(ServerStorage.MatterSystems, Components)
// shared/components.ts
import { component } from "@rbxts/matter"
import { Replicated } from "@rbxts/matter-bootstrap"

export class Components {
	@Replicated
	public static readonly secondsPlayedTimer = 
		component<{
			secondsPlayed: number
		}>("secondsPlayedTimer")
}

About

A simple class that handles everything needed to bootstrap a Matter world including hot-reloading, live debug, networking (using @rbxts/yetanothernet), and component replication.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published