-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSpawnerSystem.h
28 lines (23 loc) · 960 Bytes
/
SpawnerSystem.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#pragma once
#include <System.h>
#include "EventSubscriber.h"
#include "SpawnerComponent.h"
#include "SpawnChildComponent.h"
#include"SpawnSoundComponent.h"
class SpawnerSystem :
public System,public EventSubscriber,public IStartable,public IFixedUpdatable
{
public:
SpawnerSystem(std::shared_ptr<SceneManager> scenemnager);
void OnInterected(std::any interective_interector);
void SpawnEntitys(SpawnerComponent* comp);
void SpawnSounds(SpawnSoundComponent* comp);
// IStartable을(를) 통해 상속됨
void Initialize() override;
void Start(uint32_t gameObjectId) override;
void Finish(uint32_t gameObjectId) override;
void Finalize() override;
void SpawnPrefabToChild(SpawnChildComponent* startentity, const std::string& prefabName, const std::vector<std::tuple<VPMath::Vector3, VPMath::Vector3, VPMath::Vector3>>& poses);
// IFixedUpdatable을(를) 통해 상속됨
void FixedUpdate(float deltaTime) override;
};