ac_callback.h

dw_fluffos_v1/lib/include/ac_callback.h · 831 B

From the archive dw_fluffos_v1.tar.gz

Download the archive   « Back to the archive contents

/** 
 * This file contains the classes and defines used in the 
 * armour call back system. 
 */ 

#ifndef __SYS__AC_CALLBACK
/** @ignore yes */ 
#define __SYS__AC_CALLBACK


/** 
 * This class stores armour class call back data.
 * @member ob the object that owns the callback.
 * @member id the callback id, used to remove it.
 * @member func the function called when it is triggered. (either 
 * evaluated if it is a function pointer, or call_other()'d if it 
 * is an array in the format ({ object, function }) 
 * @member priority an integer indicating the priority of the call back,
 * functions with a higher priority are evaluated first.
 * @member extra any extra data.
 */ 
class ac_callback_data { 
    object ob; 
    int id; 
    function func;
    int priority; 
    mixed extra; 
}
#endif /* __SYS__AC_CALLBACK */ 

Site Stats

Snippets: 1791
Codebases: 571