27#include "RNA_prototypes.hh"
51 rule->
flag &= ~BOIDRULE_CURRENT;
67 ot->
name =
"Add Boid Rule";
68 ot->
description =
"Add a boid rule to the current boid state";
116 ot->
name =
"Remove Boid Rule";
154 ot->
name =
"Move Up Boid Rule";
156 ot->
idname =
"BOID_OT_rule_move_up";
190 ot->
name =
"Move Down Boid Rule";
192 ot->
idname =
"BOID_OT_rule_move_down";
226 ot->
name =
"Add Boid State";
256 if (!part->boids->states.first) {
275 ot->
name =
"Remove Boid State";
312 ot->
name =
"Move Up Boid State";
314 ot->
idname =
"BOID_OT_state_move_up";
348 ot->
name =
"Move Down Boid State";
350 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)
Main * CTX_data_main(const bContext *C)
#define LISTBASE_FOREACH(type, var, list)
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(ID *id, unsigned int flags)
void DEG_relations_tag_update(Main *bmain)
#define BOIDSTATE_CURRENT
Read Guarded memory(de)allocation.
void MEM_freeN(void *vmemh)
void BOID_OT_state_add(wmOperatorType *ot)
static int rule_move_up_exec(bContext *C, wmOperator *)
static int state_move_up_exec(bContext *C, wmOperator *)
void BOID_OT_state_move_down(wmOperatorType *ot)
static int state_del_exec(bContext *C, wmOperator *)
static int state_move_down_exec(bContext *C, wmOperator *)
static int rule_move_down_exec(bContext *C, wmOperator *)
static int rule_add_exec(bContext *C, wmOperator *op)
void BOID_OT_rule_add(wmOperatorType *ot)
static int rule_del_exec(bContext *C, wmOperator *)
static int state_add_exec(bContext *C, wmOperator *)
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, const int default_value, const char *ui_name, const char *ui_description)
int(* invoke)(bContext *C, wmOperator *op, const wmEvent *event) ATTR_WARN_UNUSED_RESULT
int(* exec)(bContext *C, wmOperator *op) ATTR_WARN_UNUSED_RESULT
int WM_menu_invoke(bContext *C, wmOperator *op, const wmEvent *)