Files
rem-essentials-pub/include/features/ship_buy_kick.h
T

59 lines
979 B
C++

#pragma once
#include <windows.h>
#include "rem/fl_types.h"
#include "rem/st6.h"
namespace rem::features
{
struct PlayerData
{
BYTE x00[0x264];
UINT currentShipId;
BYTE x268[0xBC];
UINT shipIdOnLand;
};
struct BaseGood
{
BYTE x00[0x8];
UINT goodId;
float price;
int minQuantity;
int maxQuantity;
DWORD unknown18;
bool IsShipCandidate() const
{
return unknown18 == 0 || unknown18 == 2;
}
};
struct BaseGoodCollection
{
UINT baseName;
UINT launchpadName;
DWORD unknown08;
float unknown0C;
st6::list<BaseGood> goods;
bool HasShipPackageWithGood(UINT goodId);
};
struct MarketGood
{
BYTE x00[0x10];
DWORD type;
};
struct BaseMarket
{
UINT baseName;
BaseGoodCollection* baseGoods;
};
void InitShipBuyKickFix();
}