-
-
Notifications
You must be signed in to change notification settings - Fork 0
Workspace
Imagment edited this page Mar 25, 2025
·
1 revision
Anyone can contribute to this wiki, so please feel free to correct any mistakes and add missing information! Silver C++ is a library for game development and anyone can use it and it is simple and easy to learn. It provides a variety of functions and components. Here, you will find information about the Silver C++ library.
Silver C++ uses a class-based architecture. class-based architecture, or CBA is a system design approach where the program is organized into classes that define objects and their interactions. Here is a simple diagram of CBA.
+----------------------+
| Game Object |
+----------------------+
|
| Dependent on
|
+----------------------+
| Component |
+----------------------+
|
| Called by method
|
+----------------------+
| Functions |
+----------------------+
For example, here’s how the Workspace
structure is implemented in Silver C++:
using World = std::unordered_map<int, std::shared_ptr<Actor>>;
extern World Workspace;
Here, World is a shorthand for std::unordered_map<int, std::shared_ptr>, where:
-
int
represents the object ID. -
std::shared_ptr<Actor>
is a shared pointer to an Actor.