2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2015-09-10 20:30:35 +00:00
|
|
|
#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"
|
2017-02-24 08:28:44 +00:00
|
|
|
#include "zeus/CAABox.hpp"
|
2017-12-16 02:16:20 +00:00
|
|
|
#include "specter/genie.hpp"
|
|
|
|
|
2017-12-29 08:08:12 +00:00
|
|
|
#include <cstdio>
|
2015-09-10 20:30:35 +00:00
|
|
|
|
2017-12-16 02:16:20 +00:00
|
|
|
#define SO_NAME_SPECPROP() SPECTER_PROPERTY("Name", "Instance name; Used to debug scripting events")
|
|
|
|
#define SO_LOCATION_SPECPROP() SPECTER_PROPERTY("Location", "World relative location of the Actor instance")
|
|
|
|
#define SO_ORIENTATION_SPECPROP() SPECTER_PROPERTY("Orientation", "Object local axis-angle")
|
|
|
|
#define SO_SCALE_SPECPROP() SPECTER_PROPERTY("Scale", "Object local scale")
|
|
|
|
#define SO_COLLISION_EXTENT_SPECPROP() SPECTER_PROPERTY("Collision Extent", "")
|
|
|
|
#define SO_COLLISION_OFFSET_SPECPROP() SPECTER_PROPERTY("Collision Offset", "")
|
|
|
|
#define SO_ACTIVE_SPECPROP() SPECTER_PROPERTY("Active", "If enabled, object instance is drawn and updated")
|
|
|
|
|
2017-12-29 08:08:12 +00:00
|
|
|
namespace DataSpec::DNAMP1
|
2015-09-10 20:30:35 +00:00
|
|
|
{
|
2017-02-24 08:28:44 +00:00
|
|
|
|
|
|
|
zeus::CTransform ConvertEditorEulerToTransform4f(const zeus::CVector3f& scale,
|
|
|
|
const zeus::CVector3f& orientation,
|
|
|
|
const zeus::CVector3f& position);
|
|
|
|
|
2018-02-22 07:24:51 +00:00
|
|
|
struct IScriptObject : BigDNAVYaml
|
2015-09-10 20:30:35 +00:00
|
|
|
{
|
2018-02-22 07:24:51 +00:00
|
|
|
AT_DECL_DNA_YAML
|
2015-09-10 20:30:35 +00:00
|
|
|
atUint32 type;
|
|
|
|
Value<atUint32> id;
|
2018-02-22 07:24:51 +00:00
|
|
|
struct Connection : BigDNA
|
2015-09-10 20:30:35 +00:00
|
|
|
{
|
2018-02-22 07:24:51 +00:00
|
|
|
AT_DECL_DNA_YAML
|
2015-09-10 20:30:35 +00:00
|
|
|
Value<atUint32> state;
|
|
|
|
Value<atUint32> msg;
|
|
|
|
Value<atUint32> target;
|
|
|
|
};
|
|
|
|
|
|
|
|
Value<atUint32> connectionCount;
|
2018-02-25 08:23:27 +00:00
|
|
|
Vector<Connection, AT_DNA_COUNT(connectionCount)> connections;
|
2015-09-10 20:30:35 +00:00
|
|
|
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>&,
|
2018-10-11 20:50:05 +00:00
|
|
|
CharacterAssociations<UniqueID32>& charAssoc) const {}
|
2015-10-27 00:19:03 +00:00
|
|
|
virtual void nameIDs(PAKRouter<PAKBridge>& pakRouter) const {}
|
2018-05-08 02:11:07 +00:00
|
|
|
virtual void gatherDependencies(std::vector<hecl::ProjectPath>& pathsOut,
|
|
|
|
std::vector<hecl::ProjectPath>& lazyOut) const {}
|
2016-10-02 22:41:36 +00:00
|
|
|
virtual void gatherScans(std::vector<Scan>& scansOut) const {}
|
2017-12-29 08:08:12 +00:00
|
|
|
virtual zeus::CAABox getVISIAABB(hecl::blender::Token& btok) const { return {}; }
|
2015-09-10 20:30:35 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|