24 return p_t < 0 ? -p_t : p_t;
36inline T
Min(T p_t1, T p_t2)
38 return p_t1 < p_t2 ? p_t1 : p_t2;
50inline T
Max(T p_t1, T p_t2)
52 return p_t1 > p_t2 ? p_t1 : p_t2;
65 p_dest = *(T*) p_source;
66 p_source +=
sizeof(T);
94 p_dest = *(
double*) p_source;
95 p_source +=
sizeof(double);
108inline void GetString(
MxU8*& p_source,
char*& p_dest, T* p_obj,
void (T::*p_setter)(
const char*))
110 (p_obj->*p_setter)((
char*) p_source);
111 p_source += strlen(p_dest) + 1;
[AI] STL list of MxPresenter pointers, used to manage multiple child presenters under composite contr...
[AI] Represents an action deserialized from SI chunks, holding key animation or script parameters suc...
[AI] Represents a source file handler for SI (Streamer Interface) files, providing buffered access fo...
[AI] Base class for any object deserialized from an SI (script/data) file in the LEGO Island engine.
[AI] Abstract base class for all presenter types in the LEGO Island engine, responsible for managing ...
void GetScalar(MxU8 *&p_source, T &p_dest)
Reads a value of type T from a memory buffer and advances the pointer.
void GetDouble(MxU8 *&p_source, T &p_dest)
Reads a double-precision value from memory and advances the pointer.
MxBool KeyValueStringParse(char *, const char *, const char *)
Searches p_string for a key command and copies its associated value to p_output.
T Max(T p_t1, T p_t2)
Returns the maximum of two values.
void GetString(MxU8 *&p_source, char *&p_dest, T *p_obj, void(T::*p_setter)(const char *))
Extracts a string from a buffer and assigns it using a setter function on an object.
void FUN_100b7220(MxDSAction *p_action, MxU32 p_newFlags, MxBool p_setFlags)
Recursively sets or clears flags for an MxDSAction and all sub-actions if applicable.
MxBool ContainsPresenter(MxCompositePresenterList &p_presenterList, MxPresenter *p_presenter)
Determines if a presenter exists within a composite presenter hierarchy.
void MakeSourceName(char *, const char *)
Parses an SI source filename and normalizes it for use in the engine.
void SetOmniUserMessage(void(*p_omniUserMessage)(const char *, MxS32))
Sets the callback to handle user messages, such as errors or logs, for the OMNI engine.
MxBool GetRectIntersection(MxS32 p_rect1Width, MxS32 p_rect1Height, MxS32 p_rect2Width, MxS32 p_rect2Height, MxS32 *p_rect1Left, MxS32 *p_rect1Top, MxS32 *p_rect2Left, MxS32 *p_rect2Top, MxS32 *p_width, MxS32 *p_height)
Computes intersection of two rectangles and modifies their positions and dimensions to the intersecti...
void OmniError(const char *p_message, MxS32 p_status)
Displays or logs an error message using the current user message handler, or aborts on error status i...
T Min(T p_t1, T p_t2)
Returns the minimum of two values.
T Abs(T p_t)
Returns the absolute value of a value.