1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-06 17:41:04 +00:00

ABM without_neighbors (#14116)

This commit is contained in:
sfence 2024-09-26 17:32:55 +02:00 committed by GitHub
parent c1ea49940b
commit d08d34d803
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 347 additions and 6 deletions

View file

@ -63,6 +63,9 @@ public:
// Set of required neighbors (trigger doesn't happen if none are found)
// Empty = do not check neighbors
virtual const std::vector<std::string> &getRequiredNeighbors() const = 0;
// Set of without neighbors (trigger doesn't happen if any are found)
// Empty = do not check neighbors
virtual const std::vector<std::string> &getWithoutNeighbors() const = 0;
// Trigger interval in seconds
virtual float getTriggerInterval() = 0;
// Random chance of (1 / return value), 0 is disallowed