return m_day_night_differs;
}
+ bool onObjectsActivation();
+ bool saveStaticObject(u16 id, const StaticObject &obj, u32 reason);
+
+ void step(float dtime, const std::function<bool(v3s16, MapNode, f32)> &on_timer_cb);
+
////
//// Timestamp (see m_timestamp)
////
void serializeNetworkSpecific(std::ostream &os);
void deSerializeNetworkSpecific(std::istream &is);
+
+ bool storeActiveObject(u16 id);
+ // clearObject and return removed objects count
+ u32 clearObjects();
+
private:
/*
Private methods
#endif
NodeMetadataList m_node_metadata;
- NodeTimerList m_node_timers;
StaticObjectList m_static_objects;
static const u32 ystride = MAP_BLOCKSIZE;
bool contents_cached = false;
// True if we never want to cache content types for this block
bool do_not_cache_contents = false;
+ // marks the sides which are opaque: 00+Z-Z+Y-Y+X-X
+ u8 solid_sides {0};
private:
/*
int m_refcount = 0;
MapNode data[nodecount];
+ NodeTimerList m_node_timers;
};
typedef std::vector<MapBlock*> MapBlockVect;