Skip to content

Commit

Permalink
Rename modules
Browse files Browse the repository at this point in the history
  • Loading branch information
TheIndra55 committed Jan 21, 2024
1 parent 60f6db4 commit 20d4468
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/Hook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

// Modules
#include "modules/MainMenu.h"
#include "modules/InstanceViewer.h"
#include "modules/Instance.h"
#include "modules/Skew.h"
//#include "modules/Render.h"
//#include "modules/Draw.h"
Expand Down Expand Up @@ -113,7 +113,7 @@ void Hook::RegisterModule()
void Hook::RegisterModules()
{
RegisterModule<MainMenu>();
RegisterModule<InstanceViewer>();
RegisterModule<InstanceModule>();
RegisterModule<Skew>();

#ifndef TR8
Expand Down
12 changes: 6 additions & 6 deletions src/modules/InstanceViewer.cpp → src/modules/Instance.cpp
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#include <string>
#include <imgui.h>

#include "InstanceViewer.h"
#include "Instance.h"
#include "instance/Instances.h"
#include "instance/Animation.h"
#include "game/Game.h"

void InstanceViewer::OnMenu()
void InstanceModule::OnMenu()
{
if (ImGui::BeginMenu("Instance"))
{
Expand All @@ -16,7 +16,7 @@ void InstanceViewer::OnMenu()
}
}

void InstanceViewer::OnDraw()
void InstanceModule::OnDraw()
{
if (m_show)
{
Expand Down Expand Up @@ -70,7 +70,7 @@ void InstanceViewer::OnDraw()
}
}

void InstanceViewer::DrawInstance()
void InstanceModule::DrawInstance()
{
auto instance = m_selected;

Expand Down Expand Up @@ -182,14 +182,14 @@ void InstanceViewer::DrawInstance()
}
}

void InstanceViewer::SkewTo(Instance* instance)
void InstanceModule::SkewTo(Instance* instance)
{
auto player = Game::GetPlayerInstance();

player->position = instance->position;
}

std::string InstanceViewer::GetBinary(int value)
std::string InstanceModule::GetBinary(int value)
{
std::string binary;

Expand Down
2 changes: 1 addition & 1 deletion src/modules/InstanceViewer.h → src/modules/Instance.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

#include "instance/Instance.h"

class InstanceViewer : public Module
class InstanceModule : public Module
{
private:
bool m_show = false;
Expand Down

0 comments on commit 20d4468

Please sign in to comment.