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

Method AddStreamer

TombEngine/Game/effects/Streamer.cpp:166–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164 }
165
166 void StreamerGroup::AddStreamer(int tag, const Vector3& pos, const Vector3& dir, short orient, const Color& colorStart, const Color& colorEnd,
167 float width, float life, float vel, float expRate, short rot,
168 StreamerFeatherMode featherMode, BlendMode blendMode)
169 {
170 TENAssert(_pools.size() <= POOL_COUNT_MAX, "Streamer pool count overflow.");
171
172 // Return early if pool map is full and element with tag key doesn't already exist.
173 if (_pools.size() == POOL_COUNT_MAX && !_pools.count(tag))
174 return;
175
176 // Get and extend streamer iteration.
177 auto& streamer = GetStreamerIteration(tag, featherMode, blendMode);
178 streamer.Extend(pos, dir, orient, colorStart, colorEnd, width, life, vel, expRate, rot, (unsigned int)streamer.GetSegments().size());
179 }
180
181 void StreamerGroup::Update()
182 {

Callers 1

SpawnMethod · 0.80

Calls 4

TENAssertFunction · 0.85
ExtendMethod · 0.80
sizeMethod · 0.45
countMethod · 0.45

Tested by

no test coverage detected