#pragma once

#include "stdafx.h"

#include "Includes.h"

using namespace std;

//int extract();
//int translate();
//int WriteDataTable(int i,fstream& Item,fstream& Build,fstream& Spell,fstream& Magic,fstream& Wizard,fstream& Itemmake,fstream& Rules);

//int Get_Name_Offset(int i,int j,int Step,fstream& Item,fstream& Build,fstream& Spell,fstream& Magic,fstream& Wizard,fstream& Itemmake,fstream& Rules);
//int WriteDataTableToFiles(int i,fstream& Item,fstream& Build,fstream& Spell,fstream& Magic,fstream& Wizard,fstream& Itemmake,fstream& Rules);
//int WriteData(int i,int j,fstream& Item,fstream& Build,fstream& Spell,fstream& Magic,fstream& Wizard,fstream& Itemmake,fstream& Rules);
//int DataOutput(int i,int j,int Step,fstream& Item,fstream& Build,fstream& Spell,fstream& Magic,fstream& Wizard,fstream& Itemmake,fstream& Rules);
//string FindRulesNumber(int i,int j,int Step,fstream& Item,fstream& Build,fstream& Spell,fstream& Magic,fstream& Wizard,fstream& Itemmake,fstream& Rules);
//
//
//int LoadDialogRect(CString Dialog,HWND hDialog);
//int SaveDialogRect(CString Dialog, HWND hDialog);
//int IsCharInt(char str);
//int WriteRulesData();
//int LoadDataFileToArray_i();
//int IsCharInt(char str);
//string BitFlagToString(int i);
//int StringToBitFlag(string str);
//int GetSpaces(int i,int j,int Step);
//int GetByteParameters(int i,int j,int Step);
////int Get_Hex_Offset(int i,int j,int Step,int Hex = 0);
//int GetHexAdditiveTotal(int i,int j,int Step);
//int GetHexAdditive(int i,int j,int Step);
//int GetHexStep(int i,int j,int Step);
//int Step_Max(int i,int j);


//int WriteDataRules(int i,int j,fstream& Item,fstream& Build,fstream& Spell,fstream& Magic,fstream& Wizard,fstream& Itemmake,fstream& Rules);

int WriteLableRules(ofstream& Rules,char* label);
int LoadDataFileToArray_i();
int SaveArrayToDataFile();

