2023-07-23 20:50:07 -07:00
|
|
|
#include "mapper/map_func.h"
|
|
|
|
|
2023-09-02 09:47:15 -07:00
|
|
|
#include "proto.h"
|
2023-09-02 09:57:14 -07:00
|
|
|
#include "window_manager.h"
|
2023-09-02 09:47:15 -07:00
|
|
|
|
2023-07-23 20:50:07 -07:00
|
|
|
namespace fallout {
|
|
|
|
|
2023-09-02 09:43:56 -07:00
|
|
|
// 0x5595CC
|
|
|
|
static bool block_obj_view_on = false;
|
|
|
|
|
2023-07-23 20:50:07 -07:00
|
|
|
// 0x4825B0
|
|
|
|
void setup_map_dirs()
|
|
|
|
{
|
|
|
|
// TODO: Incomplete.
|
|
|
|
}
|
|
|
|
|
2023-07-23 21:17:21 -07:00
|
|
|
// 0x4826B4
|
|
|
|
void copy_proto_lists()
|
|
|
|
{
|
|
|
|
// TODO: Incomplete.
|
|
|
|
}
|
|
|
|
|
2023-09-02 09:57:14 -07:00
|
|
|
// 0x4843A0
|
|
|
|
void erase_rect(Rect* rect)
|
|
|
|
{
|
|
|
|
Rect r = *rect;
|
|
|
|
|
|
|
|
r.bottom = rect->top;
|
|
|
|
windowRefreshAll(&r);
|
|
|
|
|
|
|
|
r.bottom = rect->bottom;
|
|
|
|
r.left = rect->right;
|
|
|
|
windowRefreshAll(&r);
|
|
|
|
|
|
|
|
r.left = rect->left;
|
|
|
|
r.top = rect->bottom;
|
|
|
|
windowRefreshAll(&r);
|
|
|
|
|
|
|
|
r.top = rect->top;
|
|
|
|
r.right = rect->left;
|
|
|
|
windowRefreshAll(&r);
|
|
|
|
}
|
|
|
|
|
2023-09-02 09:47:15 -07:00
|
|
|
// 0x484400
|
|
|
|
int toolbar_proto(int type, int id)
|
|
|
|
{
|
|
|
|
if (id < proto_max_id(type)) {
|
|
|
|
return (type << 24) | id;
|
|
|
|
} else {
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-09-02 09:43:56 -07:00
|
|
|
// 0x485D44
|
|
|
|
bool map_toggle_block_obj_viewing_on()
|
|
|
|
{
|
|
|
|
return block_obj_view_on;
|
|
|
|
}
|
|
|
|
|
2023-07-23 20:50:07 -07:00
|
|
|
} // namespace fallout
|