main commit
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
import { Networking } from "@flamework/networking";
|
||||
|
||||
import { SetSetting } from "./typings/settings";
|
||||
|
||||
/**
|
||||
* Global client to server events.
|
||||
*/
|
||||
export interface ClientToServerEvents {
|
||||
/**
|
||||
* Setting client to server events.
|
||||
*/
|
||||
settings: {
|
||||
/**
|
||||
* Send current player setting to the player.
|
||||
*/
|
||||
SetSettings(section: string, settings: Map<string, boolean | number | string>): void;
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Global client to server functions.
|
||||
*/
|
||||
export interface ClientToServerFunctions {
|
||||
/**
|
||||
* Setting client to server functions.
|
||||
*/
|
||||
settings: {
|
||||
/**
|
||||
* Get saved settings.
|
||||
*/
|
||||
GetSettings(): SetSetting;
|
||||
/**
|
||||
* Get server settings version
|
||||
*/
|
||||
GetVersion(): number;
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Global server to client events.
|
||||
*/
|
||||
export interface ServerToClientEvents {}
|
||||
|
||||
/**
|
||||
* Global server to client functions.
|
||||
*/
|
||||
export interface ServerToClientFunctions {}
|
||||
|
||||
export const GlobalEvents = Networking.createEvent<ClientToServerEvents, ServerToClientEvents>();
|
||||
export const GlobalFunctions = Networking.createFunction<ClientToServerFunctions, ServerToClientFunctions>();
|
||||
Reference in New Issue
Block a user