initial commit
This commit is contained in:
commit
de042a580c
22 changed files with 221 additions and 0 deletions
19
Crafter.Component-Component.cppm
Normal file
19
Crafter.Component-Component.cppm
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
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();
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue