-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Landon Hull
authored
Mar 23, 2020
1 parent
aa9b784
commit 7a17fd7
Showing
5 changed files
with
1,004 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} |
Oops, something went wrong.