Class: ClientManager

ClientManager


new ClientManager()

Source:

Methods


client(clientID)

Constructor for creating clients.

Parameters:
Name Type Description
clientID string
Source:
Returns:
Type
ClientManager.clientObject
Example
let client = new GAME.client.client('Leon');

doClient(girl, client, bodyPart)

Parameters:
Name Type Description
girl string

id of girl

client string

id of client

bodyPart GirlManager.bodyPart
Source:
Returns:
Type
Promise.<any>

getClientChance(girl, client, bodyPart)

Parameters:
Name Type Description
girl string
client string
bodyPart GirlManager.bodyPart
Source:

getClientExp(clientID)

Returns the amount of exp a client will give

Parameters:
Name Type Description
clientID string
Source:
Returns:
Type
number

getClientObj()

Returns the object list of all clients

Source:
Returns:
Type
Object.<client>

getClients()

Returns an array of available client indexes

Source:
Returns:
Type
Array

getClientsByID(clientID)

Parameters:
Name Type Description
clientID string
Source:
Returns:
Type
Array

guyDrops(clientID)

Parameters:
Name Type Description
clientID string
Source:

pushClient(clientID)

Creates and pushes a new client to the game data

Parameters:
Name Type Description
clientID string
Source:

sortClients()

Sorts the clients by their sort number

Source:
Returns:
Type
Promise.<any>

unlockClient(clientID)

Unlocks the client and pushes the client once.

Parameters:
Name Type Description
clientID string
Source:

Type Definitions


clientObject

Type:
  • object
Properties:
Name Type Description
ID string

client id

expire number

How many days left until this client expires

fucked boolean

If a girl has fucked this client. Fucked clients do not appear in the brothel and are removed after sleeping

Source: