RemoveEntity
and call it a daystd::vector
, std::unique_ptr
, std::shared_ptr
are finestd::vector
? I can't imagine anystd::vector
doesn't need to change in decades, tbfa.push_back(t)
compiler std::vector arrays
gcc 334 ms 318 ms
clang 327 ms 297 ms
clang libc++ 328 ms 299 ms
msvc 285 ms 265 ms
std::vector
to be less performant than our own container typeclass CCTFController : public IVanillaController, public ITeamController, public IFlagController
dynamic_cast
in the sourcedynamic_cast
is for downcasting something like a CEntity
to a CCharacter
, right?CGameServer
usually doesn't need IStorage
> rg RequestInterface src/game/server/
src/game/server/gamecontext.cpp
1437: m_pServer = Kernel()->RequestInterface<IServer>();
1438: m_pConsole = Kernel()->RequestInterface<IConsole>();
1465: m_pServer = Kernel()->RequestInterface<IServer>();
1466: m_pConsole = Kernel()->RequestInterface<IConsole>();
1492: CTile *pTiles = (CTile *)Kernel()->RequestInterface<IMap>()->GetData(pTileMap->m_Data);
(edited)