mirror of
https://github.com/antopilo/Nuake.git
synced 2026-09-27 16:17:12 +03:00
Now uses embedded resources
This commit is contained in:
@@ -6,8 +6,9 @@
|
||||
enum EditorSelectionType {
|
||||
None,
|
||||
Entity,
|
||||
File,
|
||||
File,
|
||||
Resource,
|
||||
Directory
|
||||
};
|
||||
|
||||
class EditorSelection {
|
||||
@@ -17,6 +18,7 @@ public:
|
||||
|
||||
Nuake::Entity Entity;
|
||||
Ref<Nuake::File> File;
|
||||
Ref<Nuake::Directory> Directory;
|
||||
Nuake::Resource Resource;
|
||||
|
||||
EditorSelection()
|
||||
@@ -36,6 +38,12 @@ public:
|
||||
File = file;
|
||||
}
|
||||
|
||||
EditorSelection(const Ref<Nuake::Directory>& dir)
|
||||
{
|
||||
Type = EditorSelectionType::Directory;
|
||||
Directory = dir;
|
||||
}
|
||||
|
||||
EditorSelection(const Nuake::Resource& resource)
|
||||
{
|
||||
Type = EditorSelectionType::Resource;
|
||||
|
||||
Reference in New Issue
Block a user