Add more scripting templates.

This commit is contained in:
Chandler Cox
2024-11-22 17:07:10 -06:00
parent d4b663cd1a
commit 0335086df8
9 changed files with 204 additions and 3 deletions

View File

@@ -0,0 +1,19 @@
%copyright%#include "%filename%.h"
%class%::%class%(const SpawnParams& params)
: Actor(params)
{
}
void %class%::OnEnable()
{
Actor::OnEnable();
// Here you can add code that needs to be called when script is enabled (eg. register for events)
}
void %class%::OnDisable()
{
Actor::OnDisable();
// Here you can add code that needs to be called when script is disabled (eg. unregister from events)
}