Skip to content

Commit

Permalink
create a moon #1228
Browse files Browse the repository at this point in the history
  • Loading branch information
timi-liuliang committed Jan 1, 2023
1 parent e7461a2 commit 64f87e2
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
9 changes: 9 additions & 0 deletions engine/modules/scene/planet/planet.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#include "planet.h"

namespace Echo
{
void Planet::bindMethods()
{

}
}
11 changes: 11 additions & 0 deletions engine/modules/scene/planet/planet.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#pragma once

#include "engine/core/scene/render_node.h"

namespace Echo
{
class Planet : public Render
{
ECHO_CLASS(Planet, Render)
};
}
2 changes: 2 additions & 0 deletions engine/modules/scene/scene_module.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include "terrain/editor/terrain_editor.h"
#include "tilemap/tilemap.h"
#include "tilemap/editor/tilemap_editor.h"
#include "planet/planet.h"

namespace Echo
{
Expand Down Expand Up @@ -32,6 +33,7 @@ namespace Echo
{
Class::registerType<Terrain>();
Class::registerType<TileMap>();
Class::registerType<Planet>();

CLASS_REGISTER_EDITOR(Terrain, TerrainEditor)
CLASS_REGISTER_EDITOR(TileMap, TileMapEditor)
Expand Down

0 comments on commit 64f87e2

Please # to comment.