File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -246,16 +246,8 @@ void Scene::updateSizeFromCamera(){
246246 getSystem<RenderSystem>()->updateCameraSize (getCamera ());
247247}
248248
249- Entity Scene::createEntityInternal (Entity entity){
250- return entityManager.createEntityInternal (entity);
251- }
252-
253- void Scene::setLastEntityInternal (Entity lastEntity){
254- entityManager.setLastEntityInternal (lastEntity);
255- }
256-
257- Entity Scene::getLastEntityInternal () const {
258- return entityManager.getLastEntityInternal ();
249+ bool Scene::recreateEntity (Entity entity){
250+ return entityManager.recreateEntity (entity);
259251}
260252
261253Entity Scene::createEntity (){
Original file line number Diff line number Diff line change @@ -137,9 +137,7 @@ namespace Supernova{
137137
138138 // Entity methods
139139
140- Entity createEntityInternal (Entity entity); // for internal editor use only
141- void setLastEntityInternal (Entity lastEntity); // for internal editor use only
142- Entity getLastEntityInternal () const ; // for internal editor use only
140+ bool recreateEntity (Entity entity); // for internal editor use only
143141
144142 Entity createEntity ();
145143
Original file line number Diff line number Diff line change @@ -25,14 +25,14 @@ namespace Supernova{
2525
2626 public:
2727
28- Entity createEntityInternal (Entity entity) { // for internal editor use only
29- metadata[entity];
28+ bool recreateEntity (Entity entity) { // for internal editor use only
29+ if (!isCreated (entity)){
30+ metadata[entity];
3031
31- return entity ;
32- }
32+ return true ;
33+ }
3334
34- void setLastEntityInternal (Entity lastEntity){ // for internal editor use only
35- this ->lastEntity = lastEntity;
35+ return false ;
3636 }
3737
3838 Entity getLastEntityInternal () const { // for internal editor use only
You can’t perform that action at this time.
0 commit comments