std::map<std::string, std::vector<v3s16> > &event_map,
bool peek_events)
{
- for (std::vector<GenNotifyEvent>::iterator it = m_notify_events.begin();
- it != m_notify_events.end(); ++it) {
+ std::list<GenNotifyEvent>::iterator it;
+
+ for (it = m_notify_events.begin(); it != m_notify_events.end(); ++it) {
GenNotifyEvent &gn = *it;
std::string name = (gn.type == GENNOTIFY_DECORATION) ?
"decoration#"+ itos(gn.id) :
content_t m_next_id;
// List of node strings and node resolver callbacks to perform
- std::vector<NodeResolveInfo *> m_pending_node_lookups;
+ std::list<NodeResolveInfo *> m_pending_node_lookups;
// True when all nodes have been registered
bool m_node_registration_complete;
m_next_id = 0;
m_node_registration_complete = false;
- for (std::vector<NodeResolveInfo *>::iterator
+ for (std::list<NodeResolveInfo *>::iterator
it = m_pending_node_lookups.begin();
it != m_pending_node_lookups.end();
++it)
void CNodeDefManager::cancelNodeResolve(NodeResolver *resolver)
{
- for (std::vector<NodeResolveInfo *>::iterator
+ for (std::list<NodeResolveInfo *>::iterator
it = m_pending_node_lookups.begin();
it != m_pending_node_lookups.end();
++it) {
{
while (!m_pending_node_lookups.empty()) {
NodeResolveInfo *nri = m_pending_node_lookups.front();
- m_pending_node_lookups.erase(m_pending_node_lookups.begin());
+ m_pending_node_lookups.pop_front();
nri->resolver->resolveNodeNames(nri);
nri->resolver->m_lookup_done = true;
delete nri;
content_t c;
std::string name = nri->nodenames.front();
- nri->nodenames.erase(nri->nodenames.begin());
+ nri->nodenames.pop_front();
bool success = getId(name, c);
if (!success && node_alt != "") {
content_t c;
std::string name = nri->nodenames.front();
- nri->nodenames.erase(nri->nodenames.begin());
+ nri->nodenames.pop_front();
if (name.substr(0,6) != "group:") {
if (getId(name, c)) {
}
NodeResolveInfo *nri = new NodeResolveInfo(b);
- std::vector<std::string> &nnames = nri->nodenames;
+ std::list<std::string> &nnames = nri->nodenames;
nnames.push_back(getstringfield_default(L, index, "node_top", ""));
nnames.push_back(getstringfield_default(L, index, "node_filler", ""));
nnames.push_back(getstringfield_default(L, index, "node_stone", ""));