mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
CAO 'node' visual (#15683)
This commit is contained in:
parent
5a8720a484
commit
27bbe3a873
14 changed files with 267 additions and 91 deletions
|
@ -145,7 +145,7 @@ struct alignas(u32) MapNode
|
|||
|
||||
MapNode() = default;
|
||||
|
||||
MapNode(content_t content, u8 a_param1=0, u8 a_param2=0) noexcept
|
||||
constexpr MapNode(content_t content, u8 a_param1=0, u8 a_param2=0) noexcept
|
||||
: param0(content),
|
||||
param1(a_param1),
|
||||
param2(a_param2)
|
||||
|
@ -157,6 +157,10 @@ struct alignas(u32) MapNode
|
|||
&& param1 == other.param1
|
||||
&& param2 == other.param2);
|
||||
}
|
||||
bool operator!=(const MapNode &other) const noexcept
|
||||
{
|
||||
return !(*this == other);
|
||||
}
|
||||
|
||||
// To be used everywhere
|
||||
content_t getContent() const noexcept
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue