diff --git a/samp-npcs/NPC.cpp b/samp-npcs/NPC.cpp new file mode 100644 index 0000000..3ec60d0 --- /dev/null +++ b/samp-npcs/NPC.cpp @@ -0,0 +1 @@ +#include "NPC.h" diff --git a/samp-npcs/NPC.h b/samp-npcs/NPC.h new file mode 100644 index 0000000..0596d92 --- /dev/null +++ b/samp-npcs/NPC.h @@ -0,0 +1,7 @@ +#pragma once +class NPC +{ +public: + virtual void Update() = 0; +}; + diff --git a/samp-npcs/NPCManager.cpp b/samp-npcs/NPCManager.cpp new file mode 100644 index 0000000..f10251e --- /dev/null +++ b/samp-npcs/NPCManager.cpp @@ -0,0 +1,13 @@ +#include "NPCManager.h" + +NPCZone::NPCZone(float radius) { + this->radius = radius; +} + +NPCZone::~NPCZone() { + +} + +void NPCZone::Update() { + this->npcs.push_back(new NPCVehicle()); +} \ No newline at end of file diff --git a/samp-npcs/NPCManager.h b/samp-npcs/NPCManager.h new file mode 100644 index 0000000..d4630cf --- /dev/null +++ b/samp-npcs/NPCManager.h @@ -0,0 +1,23 @@ +#pragma once +#include +#include "NPC.h" +#include "NPCVehicle.h" + +#define SPAWN_RADIUS 300 +#define DESPAWN_RADIUS SPAWN_RADIUS + 100 + +class NPCManager +{ + +}; + +class NPCZone { +public: + NPCZone(float radius); + ~NPCZone(); + void Update(); + +private: + float radius; + std::vector npcs; +}; \ No newline at end of file diff --git a/samp-npcs/NPCVehicle.cpp b/samp-npcs/NPCVehicle.cpp new file mode 100644 index 0000000..2a1cf2b --- /dev/null +++ b/samp-npcs/NPCVehicle.cpp @@ -0,0 +1,13 @@ +#include "NPCVehicle.h" + +NPCVehicle::NPCVehicle() { + +} + +NPCVehicle::~NPCVehicle() { + +} + +void NPCVehicle::Update() { + +} \ No newline at end of file diff --git a/samp-npcs/NPCVehicle.h b/samp-npcs/NPCVehicle.h new file mode 100644 index 0000000..3196044 --- /dev/null +++ b/samp-npcs/NPCVehicle.h @@ -0,0 +1,11 @@ +#pragma once +#include "NPC.h" + +class NPCVehicle : public NPC +{ +public: + NPCVehicle(); + ~NPCVehicle(); + void Update(); +}; + diff --git a/samp-npcs/samp-npcs.vcxproj b/samp-npcs/samp-npcs.vcxproj index 5ba71e1..3725bcb 100644 --- a/samp-npcs/samp-npcs.vcxproj +++ b/samp-npcs/samp-npcs.vcxproj @@ -20,12 +20,18 @@ + + + + + + diff --git a/samp-npcs/samp-npcs.vcxproj.filters b/samp-npcs/samp-npcs.vcxproj.filters index 050abeb..caf1aed 100644 --- a/samp-npcs/samp-npcs.vcxproj.filters +++ b/samp-npcs/samp-npcs.vcxproj.filters @@ -21,6 +21,15 @@ Source Files + + Source Files + + + Source Files + + + Source Files + @@ -31,5 +40,14 @@ Header Files + + Header Files + + + Header Files + + + Header Files + \ No newline at end of file