naev 0.10.4
Data Fields
Hook Struct Reference

Internal representation of a hook. More...

Data Fields

struct Hook_ * next
 
unsigned int id
 
char * stack
 
int created
 
int delete
 
int ran_once
 
int once
 
int is_timer
 
double ms
 
int is_date
 
ntime_t res
 
ntime_t acc
 
HookType_t type
 
union {
   struct {
      unsigned int   parent
 
      char *   func
 
   }   misn
 
   struct {
      unsigned int   parent
 
      char *   func
 
   }   event
 
   struct {
      int(*   func )(void *)
 
      void *   data
 
   }   func
 
u
 

Detailed Description

Internal representation of a hook.

Definition at line 74 of file hook.c.

Field Documentation

◆ acc

ntime_t Hook::acc

Accumulated resolution.

Definition at line 91 of file hook.c.

◆ created

int Hook::created

Hook has just been created.

Definition at line 79 of file hook.c.

◆ data

void* Hook::data

Definition at line 105 of file hook.c.

◆ delete

int Hook::delete

indicates it should be deleted when possible

Definition at line 80 of file hook.c.

◆ 

struct { ... } Hook::event

Event Lua function.

◆ func [1/2]

char* Hook::func

function it runs

Function it runs.

Definition at line 97 of file hook.c.

◆ func [2/2]

int(* Hook::func) (void *)

Definition at line 104 of file hook.c.

◆ id

unsigned int Hook::id

unique id

Definition at line 77 of file hook.c.

◆ is_date

int Hook::is_date

Whether or not it is a date hook.

Definition at line 89 of file hook.c.

◆ is_timer

int Hook::is_timer

Whether or not is actually a timer.

Definition at line 85 of file hook.c.

◆ 

struct { ... } Hook::misn

Mission Lua function.

◆ ms

double Hook::ms

Milliseconds left.

Definition at line 86 of file hook.c.

◆ next

struct Hook_* Hook::next

Linked list.

Definition at line 75 of file hook.c.

◆ once

int Hook::once

Only run the hook once.

Definition at line 82 of file hook.c.

◆ parent

unsigned int Hook::parent

mission it's connected to

Event it's connected to.

Definition at line 96 of file hook.c.

◆ ran_once

int Hook::ran_once

Indicates if the hook already ran, useful when iterating.

Definition at line 81 of file hook.c.

◆ res

ntime_t Hook::res

Resolution to display.

Definition at line 90 of file hook.c.

◆ stack

char* Hook::stack

stack it's a part of

Definition at line 78 of file hook.c.

◆ type

HookType_t Hook::type

Type of hook.

Definition at line 93 of file hook.c.

◆ 

union { ... } Hook::u

Type specific data.


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