0.0.1 • Published 3 years ago

@rbxts/config v0.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

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)