wip
This commit is contained in:
@@ -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
|
||||
u32 PlacedCardCount
|
||||
u32 GoalPositionCount
|
||||
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