建档
This commit is contained in:
22
source_game/Actor/Map/Tile.h
Normal file
22
source_game/Actor/Map/Tile.h
Normal file
@@ -0,0 +1,22 @@
|
||||
#pragma once
|
||||
#include "Asset/AssetManager.h"
|
||||
#include "EngineFrame/Component/Sprite.h"
|
||||
class Tile : public Sprite
|
||||
{
|
||||
|
||||
using TileInfoBody = std::variant<
|
||||
int,
|
||||
std::string>;
|
||||
|
||||
private:
|
||||
std::unordered_map<std::string, TileInfoBody> m_data;
|
||||
|
||||
public:
|
||||
Tile(/* args */);
|
||||
Tile(std::string Path);
|
||||
~Tile();
|
||||
|
||||
void SetPos(VecFPos pos) override;
|
||||
|
||||
void InitInfo(std::string Path);
|
||||
};
|
||||
Reference in New Issue
Block a user