From d2e41b38df1130049b649406c6bfdcdf2482c783 Mon Sep 17 00:00:00 2001 From: Dalai Felinto Date: Tue, 9 Feb 2010 21:18:50 +0000 Subject: BGE: rna update for Logic Bricks New Actuators done: * OBJECT (aka MOTION) * SOUND * PROPERTY * CONSTRAINT * EDIT_OBJECT * ACTION * STATE * ARMATURE Actuators to be done: * CONSTRAINT * EDIT_OBJECT * SHAPE_ACTION Actuators done already: * IPO * CAMERA * SCENE * RANDOM * MESSAGE * GAME * VISIBILITY * TWODFILTER * PARENT once again: feedback is appreciated. + some typos + some DNA padding Thanks for Mitchell Stokes (Moguri) for his patch on that. It saved me some time on the ENUMs and some actuator descriptions :) --- source/blender/makesdna/DNA_actuator_types.h | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'source/blender/makesdna/DNA_actuator_types.h') diff --git a/source/blender/makesdna/DNA_actuator_types.h b/source/blender/makesdna/DNA_actuator_types.h index 312187d3d5f..9dbb7ecd998 100644 --- a/source/blender/makesdna/DNA_actuator_types.h +++ b/source/blender/makesdna/DNA_actuator_types.h @@ -63,13 +63,13 @@ typedef struct bActionActuator { typedef struct bSoundActuator { short flag, sndnr; - int sta, end; - short pad1[2]; + int pad1, pad2; + short pad3[2]; float volume, pitch; struct bSound *sound; struct Sound3D sound3D; - short type, makecopy; - short copymade, pad2[1]; + short type, pad4; + short pad5, pad6[1]; } bSoundActuator; typedef struct bEditObjectActuator { @@ -93,16 +93,16 @@ typedef struct bSceneActuator { } bSceneActuator; typedef struct bPropertyActuator { - int flag, type; + int pad, type; char name[32], value[32]; - struct Object *ob; + struct Object *ob; // not in use anymore } bPropertyActuator; typedef struct bObjectActuator { short flag, type, otype; short damping; float forceloc[3], forcerot[3]; - float loc[3], rot[3]; + float pad[3], pad1[3]; float dloc[3], drot[3]; float linearvelocity[3], angularvelocity[3]; struct Object *reference; @@ -503,6 +503,12 @@ typedef struct FreeCamera { /* update this define if more type are addedd */ #define ACT_ARM_MAXTYPE 4 +/* stateactuator->type */ +#define ACT_STATE_SET 0 +#define ACT_STATE_ADD 1 +#define ACT_STATE_REMOVE 2 +#define ACT_STATE_CHANGE 3 + #endif -- cgit v1.2.3