forked from Dynamitos/Seele
Basic mutability framework
This commit is contained in:
1 parent
b2718dde70
commit
6d48267ec2
72 files changed
+1781
-1341
No files matched your search
@@ -0,0 +1,20 @@
|
||||
#pragma once
|
||||
#include "Component.h"
|
||||
#include "MyOtherComponent.h"
|
||||
|
||||
namespace Seele
|
||||
{
|
||||
class MyComponent : public Component
|
||||
{
|
||||
public:
|
||||
MyComponent();
|
||||
virtual void start();
|
||||
virtual Job tick(float deltatime) const;
|
||||
virtual Job update();
|
||||
private:
|
||||
Writable<PMyOtherComponent> otherComp;
|
||||
Writable<uint32> writable = Writable<uint32>(0);
|
||||
uint32 notWritable = 10;
|
||||
};
|
||||
DECLARE_REF(MyComponent);
|
||||
} // namespace Seele
|
||||
Reference in new issue
Block a user