mirror of
https://github.com/enduro2d/enduro2d.git
synced 2026-01-05 01:51:02 +07:00
dummy prefab classes
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
#include "assets/material_asset.hpp"
|
||||
#include "assets/mesh_asset.hpp"
|
||||
#include "assets/model_asset.hpp"
|
||||
#include "assets/prefab_asset.hpp"
|
||||
#include "assets/shader_asset.hpp"
|
||||
#include "assets/shape_asset.hpp"
|
||||
#include "assets/sprite_asset.hpp"
|
||||
@@ -43,6 +44,7 @@
|
||||
#include "model.hpp"
|
||||
#include "node.hpp"
|
||||
#include "node.inl"
|
||||
#include "prefab.hpp"
|
||||
#include "sprite.hpp"
|
||||
#include "starter.hpp"
|
||||
#include "world.hpp"
|
||||
|
||||
@@ -27,6 +27,7 @@ namespace e2d
|
||||
class material_asset;
|
||||
class mesh_asset;
|
||||
class model_asset;
|
||||
class prefab_asset;
|
||||
class shader_asset;
|
||||
class shape_asset;
|
||||
class sprite_asset;
|
||||
@@ -59,6 +60,7 @@ namespace e2d
|
||||
class flipbook;
|
||||
class model;
|
||||
class node;
|
||||
class prefab;
|
||||
class sprite;
|
||||
class starter;
|
||||
class world;
|
||||
|
||||
20
headers/enduro2d/high/assets/prefab_asset.hpp
Normal file
20
headers/enduro2d/high/assets/prefab_asset.hpp
Normal file
@@ -0,0 +1,20 @@
|
||||
/*******************************************************************************
|
||||
* This file is part of the "Enduro2D"
|
||||
* For conditions of distribution and use, see copyright notice in LICENSE.md
|
||||
* Copyright (C) 2018-2019, by Matvey Cherevko (blackmatov@gmail.com)
|
||||
******************************************************************************/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "../_high.hpp"
|
||||
|
||||
#include "../library.hpp"
|
||||
#include "../prefab.hpp"
|
||||
|
||||
namespace e2d
|
||||
{
|
||||
class prefab_asset final : public content_asset<prefab_asset, prefab> {
|
||||
public:
|
||||
static load_async_result load_async(const library& library, str_view address);
|
||||
};
|
||||
}
|
||||
34
headers/enduro2d/high/prefab.hpp
Normal file
34
headers/enduro2d/high/prefab.hpp
Normal file
@@ -0,0 +1,34 @@
|
||||
/*******************************************************************************
|
||||
* This file is part of the "Enduro2D"
|
||||
* For conditions of distribution and use, see copyright notice in LICENSE.md
|
||||
* Copyright (C) 2018-2019, by Matvey Cherevko (blackmatov@gmail.com)
|
||||
******************************************************************************/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "_high.hpp"
|
||||
|
||||
namespace e2d
|
||||
{
|
||||
class prefab final {
|
||||
public:
|
||||
prefab();
|
||||
~prefab() noexcept;
|
||||
|
||||
prefab(prefab&& other) noexcept;
|
||||
prefab& operator=(prefab&& other) noexcept;
|
||||
|
||||
prefab(const prefab& other);
|
||||
prefab& operator=(const prefab& other);
|
||||
|
||||
void clear() noexcept;
|
||||
void swap(prefab& other) noexcept;
|
||||
|
||||
prefab& assign(prefab&& other) noexcept;
|
||||
prefab& assign(const prefab& other);
|
||||
};
|
||||
|
||||
void swap(prefab& l, prefab& r) noexcept;
|
||||
bool operator==(const prefab& l, const prefab& r) noexcept;
|
||||
bool operator!=(const prefab& l, const prefab& r) noexcept;
|
||||
}
|
||||
Reference in New Issue
Block a user