This commit is contained in:
aozhiwei 2023-02-25 15:28:05 +08:00
parent 7fc8efeedf
commit 0df20b549b
4 changed files with 7 additions and 39 deletions

View File

@ -7,6 +7,13 @@ namespace mt
{ {
class MapCollider; class MapCollider;
struct WorldObject
{
int object_id = 0;
int object_type = 0;
glm::vec3 pos;
};
DECLARE_ID_TABLE(Map, mtb::Map, DECLARE_ID_TABLE(Map, mtb::Map,
"map@map.json", "map@map.json",
"map_id") "map_id")

View File

@ -37,7 +37,6 @@
#include "mt/MapCollider.h" #include "mt/MapCollider.h"
#include "mt/Grasp.h" #include "mt/Grasp.h"
#include "mt/GraspBuff.h" #include "mt/GraspBuff.h"
#include "mt/WorldObject.h"
#include "app.h" #include "app.h"
@ -104,7 +103,6 @@ namespace mt
RegMetaTable<MapArea>(res_path_); RegMetaTable<MapArea>(res_path_);
RegMetaTable<Grasp>(res_path_); RegMetaTable<Grasp>(res_path_);
RegMetaTable<GraspBuff>(res_path_); RegMetaTable<GraspBuff>(res_path_);
RegMetaTable<WorldObject>(res_path_);
} }
void MetaMgr::Load() void MetaMgr::Load()

View File

@ -1,18 +0,0 @@
#include "precompile.h"
#include "mt/WorldObject.h"
IMPL_TABLE(mt::WorldObject)
namespace mt
{
void WorldObject::Init1()
{
}
void WorldObject::Init2()
{
}
}

View File

@ -1,19 +0,0 @@
#pragma once
#include "mt/macro.h"
#include "mtb/WorldObject.h"
namespace mt
{
DECLARE_AUTO_ID_TABLE(WorldObject, mtb::WorldObject,
"world_object@world_object.json"
)
public:
void Init1();
void Init2();
};
}