Forum Discussion
Anonymous
4 years agoOk, this example builds everything from the ground up. First, a DataSource discovers instances and as the instances are discovered, the predef.externalResourceID and predef.externalResourceType are set. Each world in Super Mario World is created as an instance. The ERI for this instance is "Chocolate_Fortress" and the type is "SMWExit". This gets the "nodes" for your topology. Now you need to discover the "edges"/relationships between those.
TopologySources discover the relationships/edges. In this case, the TS output looks like this. Notice that this is a JSON formatted list of edges, where each edge specifies two nodes' ERIs and the type of connection between the two nodes.
{ "edges": [ { "from": "yoshi_s_island_1", "to": "yoshi_s_house", "type": "Path" }, [[[OUTPUT TRUNCATED]]] { "from": "chocolate_island_3", "to": "chocolate_island_3", "type": "Normal" }, { "from": "chocolate_island_3", "to": "chocolate_fortress", "type": "Secret" }, { "from": "chocolate_fortress", "to": "chocolate_island_4", "type": "Normal" }, { "from": "chocolate_island_4", "to": "chocolate_island_5", "type": "Normal" }, [[[OUTPUT TRUNCATED]]] { "from": "outrageous", "to": "funky", "type": "Normal" } ] }
Does this help?
Related Content
- 6 years ago
- 6 years ago