Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:toolworks:docs:apparatus:enchaining [2021/06/18 22:17] – [C++ Workflow] vladius | en:toolworks:docs:apparatus:enchaining [2022/07/18 18:12] (current) – Fix trouble. jispar | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Enchaining ====== | ====== Enchaining ====== | ||
- | Enchaining is the process of selecting a subset of Chunks (or Belts) based on a certain Filter criteria. Once enchained | + | Enchaining is a process of selecting a subset of Chunks (or Belts) based on a certain |
===== C++ Workflow ===== | ===== C++ Workflow ===== | ||
- | That's pretty basic, really. You don't create (instantiate) Chains manually but those are actually managed by the [[appi> | + | That's pretty basic, really. You don't create (instantiate) Chains manually but those are actually managed by the [[appi> |
<code cpp> | <code cpp> | ||
- | int32 ChainId; | + | FChain& Chain = Mechanism-> |
- | UMachine::Enchain(Filter, ChainId); | + | |
</ | </ | ||
- | You are now ready to [[appi> | + | You' |
- | FChain& Chain = UMachine:: | + | |
+ | ==== Solid Chains ==== | ||
+ | |||
+ | You can also enchain to a special type of Chains called // | ||
+ | Solid chains provide some additional features like getting direct references to Traits | ||
+ | limit the operations possible on the Subjects to only non-structural ones. That is, you can't add or remove any | ||
+ | traits to/from the Subjects during some active solid enchainings. Enchaining to a solid chain is as easy as: | ||
+ | |||
+ | <code cpp> | ||
+ | FSolidChain& Chain = Mechanism-> | ||
</ | </ | ||
- | Make sure you're actually assigning it to a reference (''&'' | + | ==== Chunks Proxies ==== |
- | You're now ready to [[en: | + | If you want to Iterate |
+ | In order to do that, a special overloaded [[appi> | ||
+ | It accepts an [[ue> |