wip
This commit is contained in:
@@ -72,7 +72,6 @@ void DefinitionFile::GenerateCpp(const bx::FilePath& outDir)
|
||||
bx::Error error;
|
||||
bx::FileWriter writer;
|
||||
bx::FilePath writePath = outDir;
|
||||
|
||||
std::filesystem::create_directory(outDir.getCPtr());
|
||||
writePath.join("Generated.h");
|
||||
writer.open(writePath, false, &error);
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
#include <cstdlib>
|
||||
#include <cwchar>
|
||||
#include <fileapi.h>
|
||||
#include <fstream>
|
||||
#include <processthreadsapi.h>
|
||||
#include <synchapi.h>
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <Windows.h>
|
||||
#undef min
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
#include "bx/math.h"
|
||||
#include <cassert>
|
||||
#include <cstdint>
|
||||
#include <minwindef.h>
|
||||
|
||||
namespace
|
||||
{
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
#include "bx/handlealloc.h"
|
||||
#include "bx/hash.h"
|
||||
#include <bx/string.h>
|
||||
|
||||
#include <debugapi.h>
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include "Windows.h"
|
||||
|
||||
#define ESC "\x1B["
|
||||
#define YELLOW ESC "33m"
|
||||
|
||||
@@ -1,8 +1,59 @@
|
||||
type PuzPos
|
||||
{
|
||||
i8 X
|
||||
i8 Y
|
||||
}
|
||||
|
||||
type ElemPos
|
||||
{
|
||||
PuzPos Position
|
||||
u8 ElemIdx
|
||||
}
|
||||
|
||||
enum PuzzleElementType Type(u8)
|
||||
{
|
||||
None,
|
||||
WaterIn,
|
||||
WaterGoal,
|
||||
WaterChannel,
|
||||
ElectricIn,
|
||||
ElectricGoal,
|
||||
Blocked,
|
||||
Bridge,
|
||||
}
|
||||
|
||||
type PuzzleNode
|
||||
{
|
||||
PuzzleElementType PlacedTypes
|
||||
}
|
||||
|
||||
type StaticPuzzleCard
|
||||
{
|
||||
PuzzleNode Nodes Arr(8)
|
||||
u16 ModelHandle
|
||||
}
|
||||
|
||||
type StaticPuzzleCardHandle
|
||||
{
|
||||
u16 Idx
|
||||
}
|
||||
|
||||
type PuzzleCardStack
|
||||
{
|
||||
StaticPuzzleCardHandle RefCard
|
||||
u8 MaxAvailableCount
|
||||
u8 UsedCount
|
||||
}
|
||||
|
||||
type PuzzleData
|
||||
{
|
||||
u8 WidthTiles
|
||||
u8 HeightTiles
|
||||
u32 AvailableCardCount
|
||||
PuzzleCardStack AvailableCards Arr(8)
|
||||
u32 PlacedCardCount
|
||||
PlacedPuzzleCard PlacedCards Arr(8)
|
||||
PuzzleNode PlacedNodes Arr(8)
|
||||
u32 GoalPositionCount
|
||||
ElemPos GoalPositions
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user