More JSDoc

This commit is contained in:
Vortrex
2023-03-04 08:36:37 -06:00
parent 16549d5042
commit c6e1fb7f6d
2 changed files with 9 additions and 4 deletions

View File

@@ -23,11 +23,15 @@ class ClanData {
this.colour = COLOUR_WHITE;
this.colours = [];
this.initialRank = 0;
this.members = [];
this.ranks = [];
this.needsSaved = false;
this.motd = false;
/** @type {Array.<ClanMemberData>} */
this.members = [];
/** @type {Array.<ClanRankData>} */
this.ranks = [];
if (dbAssoc) {
this.databaseId = toInteger(dbAssoc["clan_id"]);
this.name = dbAssoc["clan_name"];

View File

@@ -16,12 +16,13 @@ const V_RETURNTO_TYPE_SKINSELECT = 2; // "Return to" data is from skin
/**
* @class Representing extra data for a client
* @property {AccountData} accountData
* @property {Array.<SubAccountData>} subAccounts
*/
class ClientData {
constructor(client, accountData, subAccounts) {
/** @type {AccountData} */
this.accountData = accountData;
/** @type {Array.<SubAccountData>} */
this.subAccounts = subAccounts; // Characters
// General Info