X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Fmapnode.h;h=7cc25c60cfabde4b70036e1b80667ad67f69ebad;hb=18cfd89a86af550b3c4663def77a5fac46e895ae;hp=82c53e7d4474b4fc86a9e11fe14e093f5f841cb8;hpb=805c8e51e5dd4dfad381a0d40b4388b5de90becf;p=minetest.git diff --git a/src/mapnode.h b/src/mapnode.h index 82c53e7d4..7cc25c60c 100644 --- a/src/mapnode.h +++ b/src/mapnode.h @@ -192,6 +192,14 @@ struct MapNode } void setLight(enum LightBank bank, u8 a_light, INodeDefManager *nodemgr); + + /** + * Check if the light value for night differs from the light value for day. + * + * @return If the light values are equal, returns true; otherwise false + */ + bool isLightDayNightEq(INodeDefManager *nodemgr) const; + u8 getLight(enum LightBank bank, INodeDefManager *nodemgr) const; /** @@ -209,7 +217,7 @@ struct MapNode * @pre f != NULL * @pre f->param_type == CPT_LIGHT */ - u8 getLightNoChecks(LightBank bank, const ContentFeatures *f); + u8 getLightNoChecks(LightBank bank, const ContentFeatures *f) const; bool getLightBanks(u8 &lightday, u8 &lightnight, INodeDefManager *nodemgr) const;