Cavestory Mod API
Public Attributes | List of all members
TEXT_SCRIPT Struct Reference

Text script state object. More...

#include <CSMAPI_types.h>

Public Attributes

char path [PATH_LENGTH]
 Path (reload when exit teleporter menu/inventory)
 
int size
 Script buffer size.
 
char * data
 Script buffer size.
 
signed char mode
 Mode (ex. More...
 
TextScriptTarget target
 
signed char flags
 Flags.
 
unsigned int p_read
 Current positions (read position in buffer, x position in line)
 
int p_write
 Current write position in text.
 
int p_tur_x
 When in instant text display mode, this stores how far along the pen's X offset is.
 
int line
 Current line to write to.
 
int ypos_line [4]
 Line y positions.
 
int wait
 Event wait.
 
int wait_next
 Wait Next.
 
int next_event
 Next event.
 
int wait_npc
 Wait NPC.
 
int wait_npc_act
 Wait NPC act.
 
signed char select
 Yes/no selected.
 
int face
 Current face.
 
int face_x
 Face X offset.
 
int item
 Current item.
 
int item_y
 Item Y offset.
 
RECT rcText
 Text rect.
 
int offsetY
 ..?
 
bool focus_on_plr
 Whether to focus on the player who has context control.
 
char lock_mode
 Lock mode. More...
 
int current_event
 The event that is currently being ran.
 
bool transmit
 Whether to transmit this to everyone on the server.
 
int focus_npc
 Focusing: gNPC Index.
 
int focus_wait
 Focusing: Camera speed.
 
int * old_focus_x
 Focusing: Old focus X ptr.
 
int * old_focus_y
 Focusing: Old focus Y ptr.
 
unsigned char wait_beam
 NOD cursor blink.
 
NPCHARsource_npc
 The NPC that was used to start the event.
 
TextScriptSkipEventStatus skip_status
 The current event skipping status.
 

Detailed Description

Text script state object.

Member Data Documentation

◆ lock_mode

char TEXT_SCRIPT::lock_mode

Lock mode.

0 = None\n1 = <KEY\n2 = <PRI

◆ mode

signed char TEXT_SCRIPT::mode

Mode (ex.

NOD, WAI)


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