Skip to content

Commit b8167c1

Browse files
committed
resource manager update
1 parent 9f473b4 commit b8167c1

File tree

2 files changed

+28
-7
lines changed

2 files changed

+28
-7
lines changed

.idea/workspace.xml

Lines changed: 1 addition & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Systems/ObserverSystem.hpp

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
//
2+
// Created by carlo on 2024-11-24.
3+
//
4+
5+
#ifndef OBSERVER_SYSTEM
6+
#define OBSERVER_SYSTEM
7+
namespace SYSTEMS{
8+
9+
class Watcher
10+
{
11+
public:
12+
virtual ~Watcher() = default;
13+
virtual void UpdateWatcher() = 0;
14+
};
15+
16+
class Subject
17+
{
18+
public:
19+
virtual ~Subject() = default;
20+
virtual void Attach(Watcher* watcher) = 0;
21+
virtual void Notify() = 0;
22+
virtual void Detach(Watcher* watcher) = 0;
23+
24+
};
25+
26+
}
27+
#endif //OBSERVER_SYSTEM

0 commit comments

Comments
 (0)