parsing - Anchors in Yaml -
i'm learning yaml , have problem code:
http://hastebin.com/focokeqawo.sm
--- classes: audio: - &music components.audio.music - &sound components.audio.sound graphic: - &animation components.graphic.animation - &image components.graphic.image - &text components.graphic.text misc: - &camera components.misc.camera - &debug components.misc.debug collider: - &circle components.physics.circle - &hitbox components.physics.hitbox - &polygon components.physics.polygon common: - &physics components.physics - &transform components.transform &wabbit wabbit: name: wabbit components: - type: *transform x: 150 y: 120 - type: *image file: wabbit - type: *physics - type: *debug &coin coin: name: coin components: - type: *transform x: 370 y: 180 scalex: 5 scaley: 5 - type: *physics - type: *debug &ground ground: name: ground components: - type: *transform x: 320 y: 475 &testscene testscene: type: scene gameobjects: [*wabbit, *coin, *ground] extensions: [nape] engine: name: example scene: *testscene paused: false debug: true screen: color: [146, 150, 152] #grey scalex: 1 scaley: 1 zoom: 1
the "gameobjects" array @ bottom parsed string array expected contain actual data of anchors(&). i'm using anchors @ top , work fine.
question: yaml anchors work complex data?
Comments
Post a Comment