|
|
|
@ -39,6 +39,7 @@ void SetCoord(df::coord in, RemoteFortressReader::Coord *out)
|
|
|
|
|
|
|
|
|
|
command_result MoveCommand(DFHack::color_ostream &stream, const MoveCommandParams *in)
|
|
|
|
|
{
|
|
|
|
|
/* Removed for v50 which has no adventure mode.
|
|
|
|
|
auto viewScreen = getCurViewscreen();
|
|
|
|
|
if (!in->has_direction())
|
|
|
|
|
return CR_WRONG_USAGE;
|
|
|
|
@ -186,11 +187,12 @@ command_result MoveCommand(DFHack::color_ostream &stream, const MoveCommandParam
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
return CR_OK;
|
|
|
|
|
*/ return CR_OK;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
command_result JumpCommand(DFHack::color_ostream &stream, const MoveCommandParams *in)
|
|
|
|
|
{
|
|
|
|
|
/* Removed for v50 which has no adventure mode.
|
|
|
|
|
if (!in->has_direction())
|
|
|
|
|
return CR_WRONG_USAGE;
|
|
|
|
|
if (!df::global::adventure->menu == ui_advmode_menu::Default)
|
|
|
|
@ -228,11 +230,13 @@ command_result JumpCommand(DFHack::color_ostream &stream, const MoveCommandParam
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
keyQueue.push(interface_key::SELECT);
|
|
|
|
|
*/
|
|
|
|
|
return CR_OK;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
command_result MenuQuery(DFHack::color_ostream &stream, const EmptyMessage *in, MenuContents *out)
|
|
|
|
|
{
|
|
|
|
|
/* Removed for v50 which has no adventure mode.
|
|
|
|
|
auto advUi = df::global::adventure;
|
|
|
|
|
|
|
|
|
|
if (advUi == NULL)
|
|
|
|
@ -272,12 +276,13 @@ command_result MenuQuery(DFHack::color_ostream &stream, const EmptyMessage *in,
|
|
|
|
|
default:
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
return CR_OK;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
command_result MovementSelectCommand(DFHack::color_ostream &stream, const dfproto::IntMessage *in)
|
|
|
|
|
{
|
|
|
|
|
/* Removed for v50 which has no adventure mode.
|
|
|
|
|
if (!(df::global::adventure->menu == ui_advmode_menu::MoveCarefully))
|
|
|
|
|
return CR_OK;
|
|
|
|
|
int choice = in->value();
|
|
|
|
@ -288,11 +293,13 @@ command_result MovementSelectCommand(DFHack::color_ostream &stream, const dfprot
|
|
|
|
|
keyQueue.push(interface_key::SECONDSCROLL_PAGEDOWN);
|
|
|
|
|
}
|
|
|
|
|
keyQueue.push((interface_key::interface_key)(interface_key::OPTION1 + select));
|
|
|
|
|
*/
|
|
|
|
|
return CR_OK;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
command_result MiscMoveCommand(DFHack::color_ostream &stream, const MiscMoveParams *in)
|
|
|
|
|
{
|
|
|
|
|
/* Removed for v50 which has no adventure mode.
|
|
|
|
|
if (!df::global::adventure->menu == ui_advmode_menu::Default)
|
|
|
|
|
return CR_OK;
|
|
|
|
|
|
|
|
|
@ -312,6 +319,6 @@ command_result MiscMoveCommand(DFHack::color_ostream &stream, const MiscMovePara
|
|
|
|
|
default:
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
return CR_OK;
|
|
|
|
|
}
|
|
|
|
|