Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Landon Hull authored Mar 23, 2020
1 parent aa9b784 commit 7a17fd7
Show file tree
Hide file tree
Showing 5 changed files with 1,004 additions and 0 deletions.
58 changes: 58 additions & 0 deletions Mod.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
#include "Mod.h"

Mod::Mod()
{
this->ModFolder = "";
this->Addme = { "", "" };
this->Sides.reserve(2);
this->Worlds.reserve(2);
this->Common_ODF.reserve(85);
this->Common_MSH.reserve(155);
this->Common_TGA.reserve(480);
this->Common_REQ.reserve(230);
this->Common_LUA.reserve(90);
this->Common_FX.reserve(175);
}

Mod::Mod(std::string str)
{
this->ModFolder = str;
this->Addme = { "", "" };
this->Sides.reserve(2);
this->Worlds.reserve(2);
this->Common_ODF.reserve(85);
this->Common_MSH.reserve(155);
this->Common_TGA.reserve(480);
this->Common_REQ.reserve(230);
this->Common_LUA.reserve(90);
this->Common_FX.reserve(175);
}

Side::Side()
{
this->SideFolder = "";
this->ODF.reserve(256);
this->MSH.reserve(256);
this->TGA.reserve(256);
this->REQ.reserve(128);
this->FX.reserve(16);
}

Side::Side(std::string str)
{
this->SideFolder = str;
this->ODF.reserve(256);
this->MSH.reserve(256);
this->TGA.reserve(256);
this->REQ.reserve(128);
this->FX.reserve(16);
}

World::World()
{
this->ODF.reserve(128);
this->MSH.reserve(128);
this->TGA.reserve(128);
this->REQ.reserve(128);
this->FX.reserve(32);
}
47 changes: 47 additions & 0 deletions Mod.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
#pragma once
#include <string>
#include <vector>

class Side
{
public:
Side();
Side(std::string str);

std::string SideFolder;
std::vector<std::pair<std::string, std::string>> ODF;
std::vector<std::pair<std::string, std::string>> MSH;
std::vector<std::pair<std::string, std::string>> TGA;
std::vector<std::pair<std::string, std::string>> REQ;
std::vector<std::pair<std::string, std::string>> FX;
};

class World
{
public:
World();

std::vector<std::pair<std::string, std::string>> ODF;
std::vector<std::pair<std::string, std::string>> MSH;
std::vector<std::pair<std::string, std::string>> TGA;
std::vector<std::pair<std::string, std::string>> REQ;
std::vector<std::pair<std::string, std::string>> FX;
};

class Mod
{
public:
Mod();
Mod(std::string str);

std::string ModFolder;
std::vector<Side> Sides;
std::vector<World> Worlds;
std::pair<std::string, std::string> Addme;
std::vector<std::pair<std::string, std::string>> Common_ODF;
std::vector<std::pair<std::string, std::string>> Common_MSH;
std::vector<std::pair<std::string, std::string>> Common_TGA;
std::vector<std::pair<std::string, std::string>> Common_REQ;
std::vector<std::pair<std::string, std::string>> Common_LUA;
std::vector<std::pair<std::string, std::string>> Common_FX;
};
14 changes: 14 additions & 0 deletions MyForm.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#include "MyForm.h"

using namespace System;
using namespace System::Windows::Forms;

[STAThreadAttribute]
void Main(array<String^>^ args)
{
Application::EnableVisualStyles();
Application::SetCompatibleTextRenderingDefault(false);

Project2::MyForm^ form = gcnew Project2::MyForm();
Application::Run(form);
}
Loading

0 comments on commit 7a17fd7

Please sign in to comment.