Skip to content

Commit

Permalink
adding hlod dir
Browse files Browse the repository at this point in the history
  • Loading branch information
mohsenph69 committed Jan 4, 2025
1 parent 4ee1c3c commit 174c3c5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions gdextension/src/editor/masset_table.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const char* MAssetTable::asset_table_path = "res://massets_editor/asset_table.re
const char* MAssetTable::asset_editor_root_dir = "res://massets_editor/";
const char* MAssetTable::editor_baker_scenes_dir = "res://massets_editor/baker_scenes/";
const char* MAssetTable::asset_thumbnails_dir = "res://massets_editor/thumbnails/";
const char* MAssetTable::hlod_res_dir = "res://massets/hlod/";
MAssetTable* MAssetTable::asset_table_singelton = nullptr;

void MAssetTable::_bind_methods(){
Expand All @@ -22,6 +23,7 @@ void MAssetTable::_bind_methods(){
ClassDB::bind_static_method("MAssetTable",D_METHOD("get_asset_editor_root_dir"), &MAssetTable::get_asset_editor_root_dir);
ClassDB::bind_static_method("MAssetTable",D_METHOD("get_editor_baker_scenes_dir"), &MAssetTable::get_editor_baker_scenes_dir);
ClassDB::bind_static_method("MAssetTable",D_METHOD("get_asset_thumbnails_dir"), &MAssetTable::get_asset_thumbnails_dir);
ClassDB::bind_static_method("MAssetTable",D_METHOD("get_hlod_res_dir"), &MAssetTable::get_hlod_res_dir);
ClassDB::bind_static_method("MAssetTable",D_METHOD("reset","hard"), &MAssetTable::reset);

ClassDB::bind_method(D_METHOD("has_mesh_item","mesh_id"), &MAssetTable::has_mesh_item);
Expand Down Expand Up @@ -174,6 +176,10 @@ String MAssetTable::get_asset_thumbnails_dir(){
return asset_thumbnails_dir;
}

String MAssetTable::get_hlod_res_dir(){
return hlod_res_dir;
}

MAssetTable::Tag::Tag(){
clear();
}
Expand Down
2 changes: 2 additions & 0 deletions gdextension/src/editor/masset_table.h
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ class MAssetTable : public Resource {
static const char* asset_editor_root_dir;
static const char* editor_baker_scenes_dir;
static const char* asset_thumbnails_dir;
static const char* hlod_res_dir;
static MAssetTable* asset_table_singelton;

public:
Expand All @@ -164,6 +165,7 @@ class MAssetTable : public Resource {
static String get_asset_editor_root_dir();
static String get_editor_baker_scenes_dir();
static String get_asset_thumbnails_dir();
static String get_hlod_res_dir();
bool has_mesh_item(int id) const;
bool has_collection(int id) const;
void remove_mesh_item(int id);
Expand Down

0 comments on commit 174c3c5

Please sign in to comment.