26#include "RNA_prototypes.hh"
50 rule->
flag &= ~BOIDRULE_CURRENT;
66 ot->
name =
"Add Boid Rule";
67 ot->
description =
"Add a boid rule to the current boid state";
115 ot->
name =
"Remove Boid Rule";
153 ot->
name =
"Move Up Boid Rule";
155 ot->
idname =
"BOID_OT_rule_move_up";
189 ot->
name =
"Move Down Boid Rule";
191 ot->
idname =
"BOID_OT_rule_move_down";
225 ot->
name =
"Add Boid State";
274 ot->
name =
"Remove Boid State";
311 ot->
name =
"Move Up Boid State";
313 ot->
idname =
"BOID_OT_state_move_up";
347 ot->
name =
"Move Down Boid State";
349 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_addtail(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
void BLI_insertlinkafter(ListBase *listbase, void *vprevlink, void *vnewlink) ATTR_NONNULL(1)
void BLI_remlink(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
void BLI_insertlinkbefore(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 wmOperatorStatus state_add_exec(bContext *C, wmOperator *)
void BOID_OT_state_move_down(wmOperatorType *ot)
static wmOperatorStatus rule_move_down_exec(bContext *C, wmOperator *)
static wmOperatorStatus rule_add_exec(bContext *C, wmOperator *op)
static wmOperatorStatus state_move_up_exec(bContext *C, wmOperator *)
static wmOperatorStatus state_del_exec(bContext *C, wmOperator *)
static wmOperatorStatus state_move_down_exec(bContext *C, wmOperator *)
static wmOperatorStatus rule_del_exec(bContext *C, wmOperator *)
static wmOperatorStatus rule_move_up_exec(bContext *C, wmOperator *)
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, const int default_value, const char *ui_name, const char *ui_description)
struct BoidSettings * boids
wmOperatorStatus(* exec)(bContext *C, wmOperator *op) ATTR_WARN_UNUSED_RESULT
wmOperatorStatus(* invoke)(bContext *C, wmOperator *op, const wmEvent *event) ATTR_WARN_UNUSED_RESULT
wmOperatorStatus WM_menu_invoke(bContext *C, wmOperator *op, const wmEvent *)