@rbxts/config
v0.0.1
Published
Config is a simple configuration maker for RobloxTS. Setting a variable on a config creates a value instance for it which can be later read from another config with the same name and parent.
Downloads
3
Readme
About
Config is a simple configuration maker for RobloxTS. Setting a variable on a config creates a value instance for it which can be later read from another config with the same name and parent.
Usage
new Config(name, parent)
Example
Server:
import { ReplicatedStorage } from "@rbxts/services";
const gameConfig = new Config("Meta", ReplicatedStorage);
gameConfig.ChoosenMap = "Desert"
print(gameConfig.ChoosenMap)
Client:
import { ReplicatedStorage } from "@rbxts/services";
const gameConfig = new Config("Meta", ReplicatedStorage);
print(gameConfig.ChoosenMap)