26#include "RNA_prototypes.hh"
66 ot->name =
"Add Boid Rule";
67 ot->description =
"Add a boid rule to the current boid state";
68 ot->idname =
"BOID_OT_rule_add";
115 ot->name =
"Remove Boid Rule";
116 ot->idname =
"BOID_OT_rule_del";
117 ot->description =
"Delete current boid rule";
153 ot->name =
"Move Up Boid Rule";
154 ot->description =
"Move boid rule up in the list";
155 ot->idname =
"BOID_OT_rule_move_up";
189 ot->name =
"Move Down Boid Rule";
190 ot->description =
"Move boid rule down in the list";
191 ot->idname =
"BOID_OT_rule_move_down";
225 ot->name =
"Add Boid State";
226 ot->description =
"Add a boid state to the particle system";
227 ot->idname =
"BOID_OT_state_add";
274 ot->name =
"Remove Boid State";
275 ot->idname =
"BOID_OT_state_del";
276 ot->description =
"Delete current boid state";
311 ot->name =
"Move Up Boid State";
312 ot->description =
"Move boid state up in the list";
313 ot->idname =
"BOID_OT_state_move_up";
347 ot->name =
"Move Down Boid State";
348 ot->description =
"Move boid state down in the list";
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 WM_menu_invoke(bContext *C, wmOperator *op, const wmEvent *)