加入 Node节点类 还未测试新框架
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
#pragma once
|
||||
#include "EngineFrame/Component/Component.h"
|
||||
#include "Asset/Common/Equipment.h"
|
||||
|
||||
#include "EngineFrame/Base/Actor.h"
|
||||
class CharacterObject;
|
||||
class Chr_Equipment : public Component
|
||||
class Chr_Equipment : public Actor
|
||||
{
|
||||
public:
|
||||
// 默认装备
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
#pragma once
|
||||
#include "EngineFrame/Component/Component.h"
|
||||
#include "Global/Global_Enum.h"
|
||||
|
||||
#include "EngineFrame/Base/Actor.h"
|
||||
class CharacterObject;
|
||||
class Chr_StateMachine : public Component
|
||||
class Chr_StateMachine : public Actor
|
||||
{
|
||||
private:
|
||||
// 父对象
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#pragma once
|
||||
#include "EngineFrame/Component/Component.h"
|
||||
#include "Global/Global_Enum.h"
|
||||
class Equipment : public Component
|
||||
#include "EngineFrame/Base/Actor.h"
|
||||
class Equipment : public Actor
|
||||
{
|
||||
public:
|
||||
// 职业动画结构体
|
||||
|
||||
@@ -15,7 +15,7 @@ static SQInteger SQR_GetPosition(HSQUIRRELVM v)
|
||||
SQUserPointer ptr;
|
||||
sq_getuserpointer(v, 2, &ptr);
|
||||
BaseObject *obj = (BaseObject *)ptr;
|
||||
VecPos3 Pos = obj->GetPosition();
|
||||
VecFPos3 Pos = obj->GetPosition();
|
||||
|
||||
sq_newtable(v);
|
||||
sq_pushstring(v, _SC("x"), -1);
|
||||
@@ -40,7 +40,7 @@ static SQInteger SQR_SetPosition(HSQUIRRELVM v)
|
||||
sq_getfloat(v, 3, &PosX);
|
||||
sq_getfloat(v, 4, &PosY);
|
||||
sq_getfloat(v, 5, &PosZ);
|
||||
obj->SetPosition(VecPos3(PosX, PosY, PosZ));
|
||||
obj->SetPosition(VecFPos3(PosX, PosY, PosZ));
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#pragma once
|
||||
#include "squirrel/SquirrelEx.h"
|
||||
#include "Global/Global_Game.h"
|
||||
#include "EngineFrame/Actor/Actor.h"
|
||||
#include "EngineFrame/Base/Actor.h"
|
||||
|
||||
static SQRESULT sq_GetVecSize(HSQUIRRELVM v, int Index, VecSize *Size)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user