SpiecsEngine
 
Loading...
Searching...
No Matches
NativeScript.cpp
Go to the documentation of this file.
1/**
2* @file NativeScript.cpp.
3* @brief The NativeScript & NativeScriptRegister Class Implementation.
4* @author Spices.
5*/
6
7#include "Pchheader.h"
8#include "NativeScript.h"
9
10namespace Spices {
11
13 {
15
16 for (size_t i = 0; i < m_NativeScripts.size(); i++)
17 {
18 m_NativeScripts[i]->OnTick(ts);
19 }
20 }
21
23 {
25
26 for (size_t i = 0; i < m_NativeScripts.size(); i++)
27 {
28 m_NativeScripts[i]->OnEvent(event);
29 }
30 }
31}
#define SPICES_PROFILE_ZONE
This Class is the basic Event Class. Inherit from it and create specific event class.
Definition Event.h:96
void OnEvent(Event &event) const
This function will be called on global Event function pointer is called.
void OnUpdate(TimeStep &ts) const
Registry Native C++ Script Class.
This Class handles our engine time step during frames. Global Unique.
Definition TimeStep.h:22