19 lines
336 B
C++
19 lines
336 B
C++
module;
|
|
|
|
#include <cstdint>
|
|
|
|
export module Crafter.Component:Component;
|
|
|
|
import Crafter.Event;
|
|
|
|
namespace Crafter {
|
|
export class Component {
|
|
public:
|
|
Event<void> onDelete;
|
|
std::uint32_t refCount = 0;
|
|
Component();
|
|
virtual ~Component();
|
|
void AddOwner();
|
|
void RemoveOwner();
|
|
};
|
|
}
|