Cavestory Mod API
Public Attributes | List of all members
CaveNet::DataStructures::NetClient::CLIENT_CACHE Struct Reference

Public Attributes

ClientColor char_color
 This client's cached playercolor.
 
bool use_color
 Whether to use this client's cached playercolor.
 
char ghostlist_lookup_table [((NPC_MAX+BOSS_MAX)+7) >> 3]
 do not use
 
List< NetClient_MapTileChangetile_change_list
 do not use
 
List< GhostInfoghostlist
 This client's ghosting queue.
 
bool bullet_ignore_list [BULLET_MAX]
 A list of bullet indices that we need to ignore until they are dead.
 
SortedBinList< int, CAVENET_CLIENT_MAX_ZONES > zonelist
 A list of zones this client's player is currently occupying.
 
PERMIT_STAGE permitStage [PERMIT_STAGE_COUNT]
 This client's permit stages.
 
ARMS armsData [ARMS_MAX]
 deprecated More...
 
ITEM itemData [ITEM_MAX]
 An array of this client's items.
 
char character_name [256]
 The name of this client's preferred character.
 
bool is_initialized
 Whether this client is initialized or not.
 
bool is_spectating
 Whether this client is spectating or not.
 
bool is_old_spectator
 Whether this client was spectating or not.
 
NetClientId current_spectate_trg
 This client's spectate target.
 
NetClientId old_spectate_trg
 This client's old spectate target.
 
int currentWeapon
 This client's currently selected weapon.
 
int lastPingLagTime
 Last ping lag time.
 
int soft_rensha
 Soft rensha; for weapons.
 
int gameFlags
 This client's game flags. More...
 
int oldGameFlags
 Old game flags. More...
 
int empty
 Empty.
 
int curr_map
 Current map index.
 
char sendPingPacket
 When to send a ping packet.
 
WHIMSICAL_STAR star [MAX_WHIMSICAL_STARS]
 Whimsical star data.
 
int star_update
 Star update.
 
int star_cached
 Cache star count.
 
int spur_charge
 This client's spur charge.
 
bool spur_max
 Whether this client's spur charge is at maximum.
 
bool has_finalized
 Whether this client has finalized initialization.
 
long long int lastMoveTime
 Last movement time (using SDL_GetTicks())
 
unsigned long long int lastInputChangeTime
 Last time input changed (using CaveNet::Server::GetGlobalTimerOffset())
 
unsigned int lastMovePacketCRC
 Last move input keys.
 
int hp_bar_wait
 HP bar timer before it dissapears.
 
int chat_emote_index
 Chat emote index.
 
int chat_emote_timer
 Chat emote timer.
 
int chat_emote_spam_amount
 Chat emote spam amount.
 
int chat_emote_spam_cooldown
 Chat emote spam cooldown.
 
int chat_emote_yoffset
 Chat emote Y offset.
 
NetClientId carried_by_ghost_id
 The client being carried by us.
 
NetClientId carrying_ghost_id
 The client we're carrying.
 
int frame_x
 This client's predicted camera X.
 
int frame_y
 This client's predicted camera Y.
 
char net_name [127]
 This client's name.
 
bool is_ghost
 Whether this is a client-side client or a server-side client.
 
bool is_our_player
 Whether this is our local player.
 
int net_name_hash
 The hash of CaveNet::DataStructures::NetClient::CLIENT_CACHE::net_name.
 
int bytes_received
 Total bytes received.
 
int bytes_sent
 Total bytes sent.
 
int bytes_lost
 Total Bytes lost.
 
int key_old
 Old key.
 
int keyTrg
 Key inputs (trg)
 
int key
 Key inputs.
 
int gameKeyOld
 Old game keys.
 
int gameKeyTrg
 KeyTrg. More...
 
int gameKey
 Key. More...
 
int death_map
 The index number of the map where this client died.
 
GUI_POINT death_position
 Persistent death NPC.
 
NetPing ping
 Ping object for this client.
 
bool got_packet
 Got packet on this tick.
 
int OpenedGUI
 Which GUI this client has opened. More...
 
int ClientSide_AveragePing
 This client's calculated ping (for client-side clients only)
 
bool ClientSide_Lagging
 Whether this client is deemed as 'lagging' (for client-side clients only)
 
bool ClientSide_Downloading
 Whether this client is downloading files (for client-side clients only)
 
int ClientSide_Download_FilesLeft
 Download files left for this client (for client-side clients only)
 
struct {
   int   x
 X position.
 
   int   y
 Y position.
 
   int   w
 Width.
 
   int   h
 Height.
 
name_rect
 This client's name rect in SURFACE_ID_NET_NAME_PLANE.
 
unsigned char ssidx
 "Signal Strength Index". More...
 
PXDEMO_PLAYER_STRUCTrecorder_player
 Our player that's being recorded.
 
int last_team_switch_time
 The last time we switched teams.
 
int create_time
 Our creation time.
 
char allow_char_move
 Allow char move.
 
int collectable_count
 Collectable count.
 
bool collectables_shown
 Collectables shown.
 
int puppy_spawn_time
 ...
 
int basil_spawn_time
 ...
 
unsigned int respawn_time
 ...
 
unsigned int last_supply_time
 Last time we interacted with a supply cabinet.
 
DynamicSortedBinList< NetFlagChangeData, 1, true > flag_change_list
 A list that holds all changed flag IDs.
 
bool notarget
 Whether this client has notarget forced on or not.
 
bool invulnerable
 Whether this client has godmode forced on or not.
 

Member Data Documentation

◆ armsData

ARMS CaveNet::DataStructures::NetClient::CLIENT_CACHE::armsData[ARMS_MAX]

deprecated

BULLET bulletData[BULLET_MAX]; An array of this client's weapons.

◆ gameFlags

int CaveNet::DataStructures::NetClient::CLIENT_CACHE::gameFlags

This client's game flags.

See also
GameFlags

◆ gameKey

int CaveNet::DataStructures::NetClient::CLIENT_CACHE::gameKey

Key.

See also
CSM_KEY_DESC::CSM_KEY_DESC_KEY

◆ gameKeyTrg

int CaveNet::DataStructures::NetClient::CLIENT_CACHE::gameKeyTrg

KeyTrg.

See also
CSM_KEY_DESC::CSM_KEY_DESC_KEYTRG

◆ oldGameFlags

int CaveNet::DataStructures::NetClient::CLIENT_CACHE::oldGameFlags

Old game flags.

See also
GameFlags

◆ OpenedGUI

int CaveNet::DataStructures::NetClient::CLIENT_CACHE::OpenedGUI

Which GUI this client has opened.

See also
CaveNet::DataStructures::GUI_Type

◆ ssidx

unsigned char CaveNet::DataStructures::NetClient::CLIENT_CACHE::ssidx

"Signal Strength Index".

Index in GUI_SourceRects::rc_IMAGE_SignalStrength .


The documentation for this struct was generated from the following file: