Plugin seeds: add FileBox minimal slots (open/read/write/close)\n- Enables method_id for common plugin calls when type known (new FileBox)
This commit is contained in:
@ -37,6 +37,8 @@ static BUILTIN_SLOTS: Lazy<HashMap<&'static str, Vec<(&'static str, MethodSlot)>
|
||||
]);
|
||||
m.insert("IntegerBox", vec![("abs", 4)]);
|
||||
m.insert("StringBox", vec![("substring", 4), ("concat", 5)]);
|
||||
// Common plugin boxes (minimal seed)
|
||||
m.insert("FileBox", vec![ ("open", 4), ("read", 5), ("write", 6), ("close", 7) ]);
|
||||
HashMap::from_iter(m)
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user