std::vector<EffectBlueprint *> alternatives; // Must all have the same amount of inputs. Pointers to make things easier for Lua.
std::vector<Index> inputs; // One for each input of alternatives[0] (ie., typically 0 or 1, occasionally 2).
std::vector<EffectBlueprint *> alternatives; // Must all have the same amount of inputs. Pointers to make things easier for Lua.
std::vector<Index> inputs; // One for each input of alternatives[0] (ie., typically 0 or 1, occasionally 2).
+ // What alternative to use if the block is disabled.
+ // Points to an alternative with IDENTITY_EFFECT if it exists
+ // (to disable as much as possible), otherwise 0.
+ int canonical_alternative = 0;
std::map<std::string, float> float_parameters;
std::map<std::string, std::array<float, 3>> vec3_parameters;
std::map<std::string, std::array<float, 4>> vec4_parameters;
std::map<std::string, float> float_parameters;
std::map<std::string, std::array<float, 3>> vec3_parameters;
std::map<std::string, std::array<float, 4>> vec4_parameters;
int Block_enable(lua_State *L);
int Block_enable_if(lua_State *L);
int Block_disable(lua_State *L);
int Block_enable(lua_State *L);
int Block_enable_if(lua_State *L);
int Block_disable(lua_State *L);
int Block_set_int(lua_State *L);
int Block_set_float(lua_State *L);
int Block_set_vec3(lua_State *L);
int Block_set_int(lua_State *L);
int Block_set_float(lua_State *L);
int Block_set_vec3(lua_State *L);
std::bitset<256> find_disabled_blocks(size_t chain_idx) const;
void find_disabled_blocks(size_t chain_idx, size_t block_idx, bool currently_disabled, std::bitset<256> *disabled) const;
std::bitset<256> find_disabled_blocks(size_t chain_idx) const;
void find_disabled_blocks(size_t chain_idx, size_t block_idx, bool currently_disabled, std::bitset<256> *disabled) const;
// so that we don't instantiate a bunch of irrelevant duplicates that
// differ only in disabled blocks. You can check this property with
// is_noncanonical_chain() and then avoid instantiating the ones where
// so that we don't instantiate a bunch of irrelevant duplicates that
// differ only in disabled blocks. You can check this property with
// is_noncanonical_chain() and then avoid instantiating the ones where