2017-02-13 01:52:02 +00:00
|
|
|
#ifndef EXPORT_DATA_H
|
|
|
|
#define EXPORT_DATA_H
|
|
|
|
|
2017-03-18 23:36:26 +00:00
|
|
|
#include "map.h"
|
2017-02-13 01:52:02 +00:00
|
|
|
#include "variant.h"
|
|
|
|
#include "vector.h"
|
|
|
|
struct ExportData {
|
|
|
|
|
|
|
|
struct Dependency {
|
|
|
|
String path;
|
|
|
|
String type;
|
|
|
|
};
|
|
|
|
|
2017-03-18 23:36:26 +00:00
|
|
|
Map<int, Dependency> dependencies;
|
2017-02-13 01:52:02 +00:00
|
|
|
|
|
|
|
struct PropertyData {
|
|
|
|
String name;
|
|
|
|
Variant value;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct ResourceData {
|
|
|
|
|
|
|
|
String type;
|
|
|
|
int index;
|
|
|
|
List<PropertyData> properties;
|
|
|
|
};
|
|
|
|
|
|
|
|
Vector<ResourceData> resources;
|
|
|
|
|
|
|
|
struct NodeData {
|
|
|
|
|
|
|
|
bool text_data;
|
2017-02-15 11:29:11 +00:00
|
|
|
bool instanced;
|
2017-02-13 01:52:02 +00:00
|
|
|
String name;
|
|
|
|
String type;
|
|
|
|
String instance;
|
|
|
|
//int info
|
|
|
|
int owner_int; //depending type
|
|
|
|
int parent_int;
|
|
|
|
bool instance_is_placeholder;
|
|
|
|
|
|
|
|
//text info
|
|
|
|
NodePath parent;
|
|
|
|
NodePath owner;
|
|
|
|
String instance_placeholder;
|
|
|
|
|
|
|
|
Vector<String> groups;
|
|
|
|
List<PropertyData> properties;
|
|
|
|
|
2017-03-18 23:36:26 +00:00
|
|
|
NodeData() {
|
|
|
|
parent_int = 0;
|
|
|
|
owner_int = 0;
|
|
|
|
text_data = true;
|
|
|
|
instanced = false;
|
|
|
|
}
|
2017-02-13 01:52:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
Vector<NodeData> nodes;
|
|
|
|
|
|
|
|
struct Connection {
|
|
|
|
|
|
|
|
bool text_data;
|
|
|
|
|
|
|
|
int from_int;
|
|
|
|
int to_int;
|
|
|
|
|
|
|
|
NodePath from;
|
|
|
|
NodePath to;
|
|
|
|
String signal;
|
|
|
|
String method;
|
|
|
|
Array binds;
|
|
|
|
int flags;
|
|
|
|
|
2017-03-18 23:36:26 +00:00
|
|
|
Connection() { text_data = true; }
|
2017-02-13 01:52:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
Vector<Connection> connections;
|
|
|
|
Vector<NodePath> editables;
|
|
|
|
|
|
|
|
Array node_paths; //for integer packed data
|
|
|
|
Variant base_scene;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // EXPORT_DATA_H
|