d_a_obj_eff OK (#855)

* park

* d_a_obj_eff OK

* OK for everything but demo.

* Update d_a_obj_eff.cpp

* Refactor daObjEff smoke effect callbacks and cleanup

Replaces direct member access and static_casts with virtual method calls for particle callbacks, improving type safety and maintainability. Updates function pointer arrays to use member function pointers with explicit class scope. Renames parameter enums for clarity and implements prm_get_type(). Changes mParticleCallback type to dPa_followEcallBack* for consistency. Also replaces direct alpha assignment with setGlobalAlpha().

* d_a_obj_eff OK for Kiosk / Demo

* Update f_pc_base.h

* Refactor particle effect functions to use setToon API

Replaces conditional logic and direct member assignments in smoke effect functions with unified calls to dComIfGp_particle_setToon and emitter setter methods. This simplifies the code, removes version-specific branches, and improves maintainability.
This commit is contained in:
Kristopher Early
2025-08-20 19:35:08 +01:00
committed by GitHub
parent 02fa1ba2c1
commit 92996b9ca1
3 changed files with 347 additions and 117 deletions
+1 -1
View File
@@ -1506,7 +1506,7 @@ config.libs = [
ActorRel(Equivalent, "d_a_obj_barrier", extra_cflags=['-pragma "nosyminline on"']), # weak func order
ActorRel(NonMatching, "d_a_obj_bemos"),
ActorRel(Matching, "d_a_obj_canon", extra_cflags=["-sym off"]),
ActorRel(NonMatching, "d_a_obj_eff"),
ActorRel(Matching, "d_a_obj_eff", extra_cflags=['-pragma "nosyminline on"']),
ActorRel(NonMatching, "d_a_obj_magmarock"),
ActorRel(NonMatching, "d_a_obj_majyuu_door"),
ActorRel(NonMatching, "d_a_obj_stair"),