INNER CODE UNIT · C++

e

evanbowman/BPCore-Engine · source/BPCoreEngine.cpp:272

         auto e = (Entity*)lua_topointer(L, 1);

         const int argc = lua_gettop(L);
         if (argc == 2) {
             auto param = lua_tointeger(L, 2);
             if (param == 1) {
                 e->del_after_anim_ = true;
             }
         } else {
             for (auto it = entity_buffer.begin();
                  it not_eq entity_buffer.end();) {

                 if (it->get() == e) {
                     it = entity_buffer.erase(it);
                     return 0;
                 } else {
                     ++it;
                 }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…