2019-09-18 01:38:13 -04:00
|
|
|
const {Collexion, Link, LinkArray} = require('./../../core/Collexion.js');
|
|
|
|
|
const PingPong = require('./pingpong.js')
|
|
|
|
|
|
|
|
|
|
;(async () => {
|
|
|
|
|
const collexion = new Collexion({});
|
|
|
|
|
collexion.createInstances({
|
|
|
|
|
'A': {
|
|
|
|
|
Code: PingPong,
|
|
|
|
|
Data: {
|
|
|
|
|
boop: true
|
|
|
|
|
},
|
|
|
|
|
Links: {
|
|
|
|
|
thing: new Link('B')
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
'B': {
|
|
|
|
|
Code: PingPong,
|
|
|
|
|
Data: {
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
Links: {
|
|
|
|
|
thing: new Link('B')
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
})();
|
|
|
|
|
|
2019-09-18 00:03:29 -04:00
|
|
|
|
|
|
|
|
// const ExampleModule = require('./module.js.js');
|
|
|
|
|
|
|
|
|
|
// module.exports = {
|
|
|
|
|
// Entities: {
|
|
|
|
|
// A: {
|
|
|
|
|
// Code: ExampleModule,
|
|
|
|
|
// Data: {
|
|
|
|
|
// thing: ref('B'),
|
|
|
|
|
// boop: true
|
|
|
|
|
// }
|
|
|
|
|
// },
|
|
|
|
|
// B: {
|
|
|
|
|
// Code: ExampleModule,
|
|
|
|
|
// Data: {
|
|
|
|
|
// thing: ref('B')
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
|