26#include "RNA_prototypes.hh"
68 ot->
name =
"Add Boid Rule";
69 ot->
description =
"Add a boid rule to the current boid state";
70 ot->
idname =
"BOID_OT_rule_add";
102 rule =
state->rules.first();
117 ot->
name =
"Remove Boid Rule";
118 ot->
idname =
"BOID_OT_rule_del";
155 ot->
name =
"Move Up Boid Rule";
157 ot->
idname =
"BOID_OT_rule_move_up";
191 ot->
name =
"Move Down Boid Rule";
192 ot->
description =
"Move boid rule down in the list";
193 ot->
idname =
"BOID_OT_rule_move_down";
227 ot->
name =
"Add Boid State";
228 ot->
description =
"Add a boid state to the particle system";
229 ot->
idname =
"BOID_OT_state_add";
276 ot->
name =
"Remove Boid State";
277 ot->
idname =
"BOID_OT_state_del";
313 ot->
name =
"Move Up Boid State";
314 ot->
description =
"Move boid state up in the list";
315 ot->
idname =
"BOID_OT_state_move_up";
349 ot->
name =
"Move Down Boid State";
350 ot->
description =
"Move boid state down in the list";
351 ot->
idname =
"BOID_OT_state_move_down";
#define BOIDSTATE_CURRENT
Read Blender memory allocation and freeing.
wmOperatorStatus WM_menu_invoke(bContext *C, wmOperator *op, const wmEvent *)
int RNA_enum_get(PointerRNA *ptr, const char *name)
void BOID_OT_state_move_up(wmOperatorType *ot)
static wmOperatorStatus rule_move_down_exec(bContext *C, wmOperator *)
static wmOperatorStatus state_move_down_exec(bContext *C, wmOperator *)
static wmOperatorStatus rule_add_exec(bContext *C, wmOperator *op)
PropertyRNA * RNA_def_enum(StructOrFunctionRNA *cont_, const char *identifier, const EnumPropertyItem *items, const int default_value, const char *ui_name, const char *ui_description)
void BOID_OT_rule_add(wmOperatorType *ot)
void BOID_OT_state_del(wmOperatorType *ot)
static wmOperatorStatus rule_move_up_exec(bContext *C, wmOperator *)
void BLI_remlink(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
void DEG_id_tag_update(ID *id, unsigned int flags)
struct BoidRule * boid_new_rule(eBoidRuleType type)
void BLI_insertlinkafter(ListBase *listbase, void *vprevlink, void *vnewlink) ATTR_NONNULL(1)
void BOID_OT_rule_move_down(wmOperatorType *ot)
static wmOperatorStatus rule_del_exec(bContext *C, wmOperator *)
void BOID_OT_state_add(wmOperatorType *ot)
static wmOperatorStatus state_move_up_exec(bContext *C, wmOperator *)
const EnumPropertyItem rna_enum_boidrule_type_items[]
void BLI_insertlinkbefore(ListBase *listbase, void *vnextlink, void *vnewlink) ATTR_NONNULL(1)
void BLI_addtail(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
Main * CTX_data_main(const bContext *C)
struct BoidState * boid_new_state(struct BoidSettings *boids)
void BOID_OT_rule_move_up(wmOperatorType *ot)
static wmOperatorStatus state_del_exec(bContext *C, wmOperator *)
static wmOperatorStatus state_add_exec(bContext *C, wmOperator *)
void DEG_relations_tag_update(Main *bmain)
struct BoidState * boid_get_current_state(struct BoidSettings *boids)
void BOID_OT_rule_del(wmOperatorType *ot)
PointerRNA CTX_data_pointer_get_type(const bContext *C, const char *member, StructRNA *type)
void BOID_OT_state_move_down(wmOperatorType *ot)
ListBaseT< BoidState > states
struct BoidSettings * boids
eParticlePhysicsType phystype
wmOperatorStatus(*) exec(bContext *C, wmOperator *op) ATTR_WARN_UNUSED_RESULT
wmOperatorStatus(*) invoke(bContext *C, wmOperator *op, const wmEvent *event) ATTR_WARN_UNUSED_RESULT