rage-framework/server/src/index.ts

27 lines
876 B
TypeScript
Raw Normal View History

import { Logger, Player, Server, rpc } from './core'
2024-06-10 03:15:09 +00:00
2024-10-29 17:03:07 +00:00
export type { RageFW_MiddlewareFunction } from './types'
2024-10-30 15:27:22 +00:00
/**
* Package used on a server-side of your Rage:MP Server
*
* @see {@link https://git.entityseven.com/entityseven/rage-framework/wiki Wiki}
*/
2024-06-10 03:15:09 +00:00
export const fw = {
2024-10-30 15:27:22 +00:00
/** Server-side interactions */
2024-06-08 22:35:14 +00:00
event: new Server(),
2024-10-30 15:27:22 +00:00
/** Handles event manipulations that require player to be present in context */
2024-06-10 03:15:09 +00:00
player: new Player(),
2024-10-30 15:27:22 +00:00
/** Handles functions used to interact with the client environment */
2024-06-11 17:27:54 +00:00
system: {
2024-10-30 15:27:22 +00:00
/** Used to log in a server console */
2024-06-11 17:27:54 +00:00
log: new Logger(),
},
2024-10-30 15:27:22 +00:00
/** ``rage-fw-rpc`` instance used under the hood. It is highly recommended to use this one if you need it instead of creating a new instance */
rpc,
2024-06-08 22:35:14 +00:00
}
2024-06-13 01:46:29 +00:00
fw.system.log.info(
'Working on Rage Framework. RageFW © Powered by Entity Seven Group',
)