Cleanup ElectricityEffect class
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 23s
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 23s
This commit is contained in:
parent
8b44a59317
commit
ff45edbece
2 changed files with 1 additions and 7 deletions
|
@ -13,11 +13,7 @@
|
||||||
|
|
||||||
ElectricityEffect::ElectricityEffect(Vector3 center, float radius,
|
ElectricityEffect::ElectricityEffect(Vector3 center, float radius,
|
||||||
int line_count, float lifetime)
|
int line_count, float lifetime)
|
||||||
: cylinders(),
|
: cylinders(), lifetime(lifetime), timer(0.0F) {
|
||||||
center(center),
|
|
||||||
cylinder_radius(CYLINDER_MAX_RADIUS),
|
|
||||||
lifetime(lifetime),
|
|
||||||
timer(0.0F) {
|
|
||||||
cylinders.reserve(line_count);
|
cylinders.reserve(line_count);
|
||||||
|
|
||||||
// Generate cylinders.
|
// Generate cylinders.
|
||||||
|
|
|
@ -28,8 +28,6 @@ class ElectricityEffect {
|
||||||
};
|
};
|
||||||
|
|
||||||
std::vector<Cylinder> cylinders;
|
std::vector<Cylinder> cylinders;
|
||||||
Vector3 center;
|
|
||||||
float cylinder_radius;
|
|
||||||
float lifetime;
|
float lifetime;
|
||||||
float timer;
|
float timer;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue