Methods
reqfromroot(name) → {object}
Враппер для require, всегда запрашивает модуль из папки /serverjs/.
Parameters:
Name | Type | Description |
---|---|---|
name |
string
|
Имя модуля в serverjs (Module) или путь к модулю там же (Folder/Subfolder.../Module). |
Returns:
- Type:
-
object
Модуль.
Type Definitions
CardInfo
Информация о карте.
Properties:
Name | Type | Description |
---|---|---|
cid |
string
|
id карты |
field |
string
|
id поля |
suit |
number
|
масть карты |
value |
number
|
значение карты |
ProtocolExtract
Properties:
Name | Type | Description |
---|---|---|
protocol |
String
|
Protocol matched in the URL, in lowercase. |
slashes |
Boolean
|
|
rest |
String
|
Rest of the URL that is not part of the protocol. |