mirror of
https://github.com/NickTheFox99/ChristmOS.git
synced 2026-06-28 16:55:11 -04:00
Split snow into namespace
This commit is contained in:
@@ -0,0 +1,3 @@
|
|||||||
|
namespace Snow {
|
||||||
|
class Manager {};
|
||||||
|
} // namespace Snow
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
#define MAX_SECS 4
|
#define MAX_SECS 4
|
||||||
#define INV_CHANCE 5
|
#define INV_CHANCE 5
|
||||||
|
|
||||||
|
namespace Snow {
|
||||||
Snow::Snow() { Snow(GetRandomValue(0, 320)); }
|
Snow::Snow() { Snow(GetRandomValue(0, 320)); }
|
||||||
Snow::Snow(uint x) { Snow(raylib::Vector2(x, 0)); }
|
Snow::Snow(uint x) { Snow(raylib::Vector2(x, 0)); }
|
||||||
Snow::Snow(raylib::Vector2 pos) {
|
Snow::Snow(raylib::Vector2 pos) {
|
||||||
@@ -47,3 +48,4 @@ void Snow::Update() {
|
|||||||
void Snow::Draw() { raylib::Color::White().DrawPixel(position); }
|
void Snow::Draw() { raylib::Color::White().DrawPixel(position); }
|
||||||
|
|
||||||
Snow::~Snow() = default;
|
Snow::~Snow() = default;
|
||||||
|
} // namespace Snow
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
#include <raylib-cpp.hpp>
|
#include <raylib-cpp.hpp>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
|
namespace Snow {
|
||||||
class Snow {
|
class Snow {
|
||||||
public:
|
public:
|
||||||
Snow();
|
Snow();
|
||||||
@@ -21,3 +22,4 @@ private:
|
|||||||
inline void Move();
|
inline void Move();
|
||||||
inline void CheckLive();
|
inline void CheckLive();
|
||||||
};
|
};
|
||||||
|
} // namespace Snow
|
||||||
|
|||||||
Reference in New Issue
Block a user