More JSDoc
This commit is contained in:
@@ -23,11 +23,15 @@ class ClanData {
|
|||||||
this.colour = COLOUR_WHITE;
|
this.colour = COLOUR_WHITE;
|
||||||
this.colours = [];
|
this.colours = [];
|
||||||
this.initialRank = 0;
|
this.initialRank = 0;
|
||||||
this.members = [];
|
|
||||||
this.ranks = [];
|
|
||||||
this.needsSaved = false;
|
this.needsSaved = false;
|
||||||
this.motd = false;
|
this.motd = false;
|
||||||
|
|
||||||
|
/** @type {Array.<ClanMemberData>} */
|
||||||
|
this.members = [];
|
||||||
|
|
||||||
|
/** @type {Array.<ClanRankData>} */
|
||||||
|
this.ranks = [];
|
||||||
|
|
||||||
if (dbAssoc) {
|
if (dbAssoc) {
|
||||||
this.databaseId = toInteger(dbAssoc["clan_id"]);
|
this.databaseId = toInteger(dbAssoc["clan_id"]);
|
||||||
this.name = dbAssoc["clan_name"];
|
this.name = dbAssoc["clan_name"];
|
||||||
|
|||||||
@@ -16,12 +16,13 @@ const V_RETURNTO_TYPE_SKINSELECT = 2; // "Return to" data is from skin
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @class Representing extra data for a client
|
* @class Representing extra data for a client
|
||||||
* @property {AccountData} accountData
|
|
||||||
* @property {Array.<SubAccountData>} subAccounts
|
|
||||||
*/
|
*/
|
||||||
class ClientData {
|
class ClientData {
|
||||||
constructor(client, accountData, subAccounts) {
|
constructor(client, accountData, subAccounts) {
|
||||||
|
/** @type {AccountData} */
|
||||||
this.accountData = accountData;
|
this.accountData = accountData;
|
||||||
|
|
||||||
|
/** @type {Array.<SubAccountData>} */
|
||||||
this.subAccounts = subAccounts; // Characters
|
this.subAccounts = subAccounts; // Characters
|
||||||
|
|
||||||
// General Info
|
// General Info
|
||||||
|
|||||||
Reference in New Issue
Block a user