27 #include "RNA_prototypes.h"
50 for (rule =
state->rules.first; rule; rule = rule->
next) {
67 ot->
name =
"Add Boid Rule";
68 ot->
description =
"Add a boid rule to the current boid state";
94 for (rule =
state->rules.first; rule; rule = rule->
next) {
101 rule =
state->rules.first;
116 ot->
name =
"Remove Boid Rule";
140 for (rule =
state->rules.first; rule; rule = rule->
next) {
155 ot->
name =
"Move Up Boid Rule";
157 ot->
idname =
"BOID_OT_rule_move_up";
177 for (rule =
state->rules.first; rule; rule = rule->
next) {
192 ot->
name =
"Move Down Boid Rule";
194 ot->
idname =
"BOID_OT_rule_move_down";
228 ot->
name =
"Add Boid State";
277 ot->
name =
"Remove Boid State";
315 ot->
name =
"Move Up Boid State";
317 ot->
idname =
"BOID_OT_state_move_up";
352 ot->
name =
"Move Down Boid State";
354 ot->
idname =
"BOID_OT_state_move_down";
struct BoidState * boid_get_current_state(struct BoidSettings *boids)
struct BoidRule * boid_new_rule(int type)
struct BoidState * boid_new_state(struct BoidSettings *boids)
PointerRNA CTX_data_pointer_get_type(const bContext *C, const char *member, StructRNA *type)
struct Main * CTX_data_main(const bContext *C)
void BLI_insertlinkafter(struct ListBase *listbase, void *vprevlink, void *vnewlink) ATTR_NONNULL(1)
void BLI_addtail(struct ListBase *listbase, void *vlink) ATTR_NONNULL(1)
void BLI_remlink(struct ListBase *listbase, void *vlink) ATTR_NONNULL(1)
void BLI_insertlinkbefore(struct ListBase *listbase, void *vnextlink, void *vnewlink) ATTR_NONNULL(1)
void DEG_id_tag_update(struct ID *id, int flag)
void DEG_relations_tag_update(struct Main *bmain)
#define BOIDSTATE_CURRENT
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum type
Read Guarded memory(de)allocation.
void(* MEM_freeN)(void *vmemh)
void BOID_OT_state_add(wmOperatorType *ot)
static int state_add_exec(bContext *C, wmOperator *UNUSED(op))
static int state_move_up_exec(bContext *C, wmOperator *UNUSED(op))
static int state_del_exec(bContext *C, wmOperator *UNUSED(op))
static int state_move_down_exec(bContext *C, wmOperator *UNUSED(op))
void BOID_OT_state_move_down(wmOperatorType *ot)
static int rule_move_up_exec(bContext *C, wmOperator *UNUSED(op))
static int rule_del_exec(bContext *C, wmOperator *UNUSED(op))
static int rule_move_down_exec(bContext *C, wmOperator *UNUSED(op))
static int rule_add_exec(bContext *C, wmOperator *op)
void BOID_OT_rule_add(wmOperatorType *ot)
void BOID_OT_rule_move_down(wmOperatorType *ot)
void BOID_OT_rule_move_up(wmOperatorType *ot)
void BOID_OT_state_del(wmOperatorType *ot)
void BOID_OT_state_move_up(wmOperatorType *ot)
void BOID_OT_rule_del(wmOperatorType *ot)
int RNA_enum_get(PointerRNA *ptr, const char *name)
const EnumPropertyItem rna_enum_boidrule_type_items[]
PropertyRNA * RNA_def_enum(StructOrFunctionRNA *cont_, const char *identifier, const EnumPropertyItem *items, int default_value, const char *ui_name, const char *ui_description)
struct BoidSettings * boids
int(* invoke)(struct bContext *, struct wmOperator *, const struct wmEvent *) ATTR_WARN_UNUSED_RESULT
int(* exec)(struct bContext *, struct wmOperator *) ATTR_WARN_UNUSED_RESULT
int WM_menu_invoke(bContext *C, wmOperator *op, const wmEvent *UNUSED(event))