No longer need to specify an application when creating a game state
This commit is contained in:
1 parent
b1efc4934e
commit
6e3a576fef
8 files changed
+20
-25
No files matched your search
+1
-1
@@ -7,7 +7,7 @@ int main(int argc, char* argv[]) {
|
||||
//app.setWindowIcon(...);
|
||||
// app.setWindowCursor(...);
|
||||
|
||||
MainState* test = new MainState(&app);
|
||||
MainState* test = new MainState;
|
||||
app.addState(test, "Main State");
|
||||
app.addDefaultState("Main State");
|
||||
|
||||
|
||||
@@ -1,11 +1,5 @@
|
||||
#include "MainState.h"
|
||||
|
||||
MainState::MainState(nf::Application* app) :
|
||||
Gamestate(app)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void MainState::onEnter() {
|
||||
Log("MainState onEnter!");
|
||||
|
||||
|
||||
@@ -3,8 +3,6 @@
|
||||
|
||||
class MainState : public nf::Gamestate {
|
||||
public:
|
||||
MainState(nf::Application* app);
|
||||
|
||||
void onEnter() override;
|
||||
|
||||
void update(double deltaTime) override;
|
||||
|
||||
Reference in new issue
Block a user