(
local_key: u64,
id: u64,
cfg: &HashMap<String, Entity>,
)
| 19 | |
| 20 | impl UniqueResourceCollection { |
| 21 | pub(crate) fn new( |
| 22 | local_key: u64, |
| 23 | id: u64, |
| 24 | cfg: &HashMap<String, Entity>, |
| 25 | ) -> UniqueResourceCollection { |
| 26 | UniqueResourceCollection { |
| 27 | resources: cfg.keys().cloned().map(|x| (x, id)).collect(), |
| 28 | storage: storage(local_key, id, cfg), |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | pub(crate) fn take_into_arc(self) -> ResourceCollection { |
| 33 | ResourceCollection { |