mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-01-28 01:43:22 +08:00
Accept "fairydust" as an emit type in ba.emitfx()
This commit is contained in:
parent
91d9142b60
commit
63b225c5ec
@ -1,4 +1,5 @@
|
||||
### 1.7.7 (build 20798, api 7, 2022-09-09)
|
||||
- Accept "fairydust" as an emit type in `ba.emitfx()`.
|
||||
- Added `ba.app.meta.load_exported_classes()` for loading classes discovered by the meta subsystem cleanly in a background thread.
|
||||
- Improved logging of missing playlist game types.
|
||||
- Some ba.Lstr functionality can now be used in background threads.
|
||||
|
||||
@ -327,6 +327,8 @@ auto PyEmitFx(PyObject* self, PyObject* args, PyObject* keywds) -> PyObject* {
|
||||
emit_type = BGDynamicsEmitType::kDistortion;
|
||||
} else if (!strcmp(emit_type_str, "flag_stand")) {
|
||||
emit_type = BGDynamicsEmitType::kFlagStand;
|
||||
} else if (!strcmp(emit_type_str, "fairydust")) {
|
||||
emit_type = BGDynamicsEmitType::kFairyDust;
|
||||
} else {
|
||||
throw Exception("Invalid emit type: '" + std::string(emit_type_str) + "'.",
|
||||
PyExcType::kValue);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user