diff options
| author | troido <troido@protonmail.com> | 2020-04-17 11:15:02 +0200 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2020-04-17 11:15:02 +0200 |
| commit | 13e9ab2c859b9a6a1935acbb93d34a7f10b7e122 (patch) | |
| tree | e28b2e0d944dc6fad62d6407a411598cedc935cf /src/componentwrapper.rs | |
| parent | 608918af8174e9afb761cdd2ad46e489b21c5f4e (diff) | |
added Mine interaction
Diffstat (limited to 'src/componentwrapper.rs')
| -rw-r--r-- | src/componentwrapper.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/componentwrapper.rs b/src/componentwrapper.rs index ecc8227..0eca576 100644 --- a/src/componentwrapper.rs +++ b/src/componentwrapper.rs @@ -284,6 +284,13 @@ components!(all: } }; Dedup (id: String, priority: Int); + Minable (trigger: String, total: Int) { + Minable { + trigger: Trigger::from_str(&trigger).ok_or(aerr!("invalid trigger name {}", trigger))?, + progress: 0, + total + } + }; ); |
