mirror of
https://github.com/antopilo/Nuake.git
synced 2026-09-15 20:08:54 +03:00
- added UI button to generate a .sln in the games folder - added UI for adding new component and drag n drop .cs file - added modular Core API module system
45 lines
828 B
C++
45 lines
828 B
C++
#pragma once
|
|
#include "ComponentPanel.h"
|
|
|
|
|
|
const std::string NET_TEMPLATE_SCRIPT_FIRST = R"(using Nuake.Net;
|
|
|
|
namespace NuakeShowcase
|
|
{
|
|
class )";
|
|
|
|
const std::string NET_TEMPLATE_SCRIPT_SECOND = R"( : Entity
|
|
{
|
|
public override void OnInit()
|
|
{
|
|
// Called once at the start of the game
|
|
}
|
|
|
|
|
|
public override void OnUpdate(float dt)
|
|
{
|
|
// Called every frame
|
|
}
|
|
|
|
public override void OnFixedUpdate(float dt)
|
|
{
|
|
// Called every fixed update
|
|
}
|
|
|
|
|
|
public override void OnDestroy()
|
|
{
|
|
// Called at the end of the game fixed update
|
|
}
|
|
}
|
|
}
|
|
)";
|
|
|
|
|
|
class NetScriptPanel : ComponentPanel {
|
|
|
|
public:
|
|
NetScriptPanel() {}
|
|
|
|
void Draw(Nuake::Entity entity) override;
|
|
}; |