This repository has been archived on 2023-11-14. You can view files and clone it, but cannot push or open issues/pull-requests.
vogue/test/world.v

18 lines
281 B
Coq
Raw Normal View History

2021-05-02 17:42:04 -04:00
link[] places;
link place;
link character;
2021-05-06 23:05:36 -04:00
restore {
if(this.places.empty) {
2021-05-02 17:42:04 -04:00
for(let i = 0; i < 3; i ++) {
const place = create('places.forest', {
2021-05-02 17:42:04 -04:00
world: this
});
this.places.push(place);
2021-05-02 17:42:04 -04:00
}
}
2021-05-06 09:33:28 -04:00
for(const place of this.places) {
console.log(place.ping());
2021-05-06 09:33:28 -04:00
}
2021-05-06 23:05:36 -04:00
}