import Creator from 'WTF-Adventure/WTF-Adventure/server/js/database/creator.js'
Creator
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public |
mysql: * |
Method Summary
Public Methods | ||
public |
|
|
public |
formatData(data: *, type: *): * |
|
public |
getPlayerData(player: *): {"username": *, "email": *, "x": *, "y": *, "kind": *, "rights": *, "hitPoints": *, "mana": *, "poisoned": *, "experience": *, "ban": *, "mute": *, "rank": *, "membership": *, "lastLogin": *, "guild": *, "pvpKills": *, "pvpDeaths": *, "lastWarp": *, "armour": *, "weapon": *, "pendant": *, "ring": *, "boots": *} |
|
public |
save(player: *) |
|
public |
tableNotExists(tableName: *, ifNotExists: *) |
Public Constructors
public constructor() source
Public Members
public mysql: * source
Public Methods
public createTables() source
public formatData(data: *, type: *): * source
Params:
Name | Type | Attribute | Description |
data | * | ||
type | * |
Return:
* |
public getPlayerData(player: *): {"username": *, "email": *, "x": *, "y": *, "kind": *, "rights": *, "hitPoints": *, "mana": *, "poisoned": *, "experience": *, "ban": *, "mute": *, "rank": *, "membership": *, "lastLogin": *, "guild": *, "pvpKills": *, "pvpDeaths": *, "lastWarp": *, "armour": *, "weapon": *, "pendant": *, "ring": *, "boots": *} source
Params:
Name | Type | Attribute | Description |
player | * |
Return:
{"username": *, "email": *, "x": *, "y": *, "kind": *, "rights": *, "hitPoints": *, "mana": *, "poisoned": *, "experience": *, "ban": *, "mute": *, "rank": *, "membership": *, "lastLogin": *, "guild": *, "pvpKills": *, "pvpDeaths": *, "lastWarp": *, "armour": *, "weapon": *, "pendant": *, "ring": *, "boots": *} |
public save(player: *) source
Params:
Name | Type | Attribute | Description |
player | * |
public tableNotExists(tableName: *, ifNotExists: *) source
Params:
Name | Type | Attribute | Description |
tableName | * | ||
ifNotExists | * |