You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the function add_item(std::unique_ptr<type_data> obj), there is no problem with obj. However, when it enters the type_register::register_type(type_data* info) function, issues occur with obj.
The value in the bool variable is 52
// header
#pragma once
#include "Script.h"
class HumanoidScript :
public Script
{
RTTR_ENABLE()
RTTR_REGISTRATION_FRIEND
private:
GameObject* Head;
GameObject* Body;
DIRECTION HeadDir;
DIRECTION BodyDir;
In the function add_item(std::unique_ptr<type_data> obj), there is no problem with obj. However, when it enters the type_register::register_type(type_data* info) function, issues occur with obj.
The value in the bool variable is 52
// header
#pragma once
#include "Script.h"
class HumanoidScript :
public Script
{
RTTR_ENABLE()
RTTR_REGISTRATION_FRIEND
private:
GameObject* Head;
GameObject* Body;
DIRECTION HeadDir;
DIRECTION BodyDir;
public:
virtual void Init() override;
virtual void Update() override;
public:
void SetHeadDir(DIRECTION _dir) { HeadDir = _dir; }
void SetBodyDir(DIRECTION _dir) { BodyDir = _dir; }
public:
HumanoidScript();
~HumanoidScript();
};
RTTR_REGISTRATION
{
rttr::registration::class_("HumanoidScript")
.constructor<>();
}
The text was updated successfully, but these errors were encountered: