2015-09-10 20:30:35 +00:00
|
|
|
#ifndef __DNAMP1_SCRIPTOBJECT_HPP
|
|
|
|
#define __DNAMP1_SCRIPTOBJECT_HPP
|
|
|
|
#include "../../DNACommon/DNACommon.hpp"
|
2015-10-27 00:19:03 +00:00
|
|
|
#include "../DNAMP1.hpp"
|
2016-10-02 22:41:36 +00:00
|
|
|
#include "../SAVW.hpp"
|
2015-09-10 20:30:35 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
|
2016-02-13 09:02:47 +00:00
|
|
|
namespace DataSpec
|
2015-09-10 20:30:35 +00:00
|
|
|
{
|
|
|
|
namespace DNAMP1
|
|
|
|
{
|
|
|
|
struct IScriptObject : BigYAML
|
|
|
|
{
|
|
|
|
DECL_YAML
|
|
|
|
atUint32 type;
|
|
|
|
Value<atUint32> id;
|
|
|
|
struct Connection : BigYAML
|
|
|
|
{
|
|
|
|
DECL_YAML
|
|
|
|
Value<atUint32> state;
|
|
|
|
Value<atUint32> msg;
|
|
|
|
Value<atUint32> target;
|
|
|
|
};
|
|
|
|
|
|
|
|
Value<atUint32> connectionCount;
|
|
|
|
Vector<Connection, DNA_COUNT(connectionCount)> connections;
|
|
|
|
Value<atUint32> propertyCount;
|
2016-08-13 01:23:27 +00:00
|
|
|
virtual ~IScriptObject() = default;
|
2015-10-27 00:19:03 +00:00
|
|
|
|
|
|
|
virtual void addCMDLRigPairs(PAKRouter<PAKBridge>&,
|
2016-10-02 22:41:36 +00:00
|
|
|
std::unordered_map<UniqueID32, std::pair<UniqueID32, UniqueID32>>&) const {}
|
2015-10-27 00:19:03 +00:00
|
|
|
virtual void nameIDs(PAKRouter<PAKBridge>& pakRouter) const {}
|
2016-10-02 22:41:36 +00:00
|
|
|
virtual void gatherDependencies(std::vector<hecl::ProjectPath>& pathsOut) const {}
|
|
|
|
virtual void gatherScans(std::vector<Scan>& scansOut) const {}
|
2015-09-10 20:30:35 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|