MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / Spawn

Method Spawn

TombEngine/Game/effects/Streamer.cpp:260–273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

258 }
259
260 void StreamerEffectController::Spawn(int itemNumber, int tag, const Vector3& pos, const Vector3& dir, short orient, const Color& colorStart, const Color& colorEnd,
261 float width, float life, float vel, float expRate, short rot,
262 StreamerFeatherMode featherMode, BlendMode blendMode)
263 {
264 TENAssert(_groups.size() <= GROUP_COUNT_MAX, "Streamer group count overflow.");
265
266 // Return early if group map is full and element with itemNumber key doesn't already exist.
267 if (_groups.size() == GROUP_COUNT_MAX && !_groups.count(itemNumber))
268 return;
269
270 // Add new or extend existing streamer.
271 auto& group = GetGroup(itemNumber);
272 group.AddStreamer(tag, pos, dir, orient, colorStart, colorEnd, width, life, vel, expRate, rot, featherMode, blendMode);
273 }
274
275 void StreamerEffectController::Update()
276 {

Callers 4

SpawnVehicleWakeFunction · 0.80
ControlFireflySwarmFunction · 0.80
SpawnWraithTailsFunction · 0.80
EmitStreamerFunction · 0.80

Calls 4

TENAssertFunction · 0.85
AddStreamerMethod · 0.80
sizeMethod · 0.45
countMethod · 0.45

Tested by

no test coverage detected