2019-07-21 08:51:47 +02:00
|
|
|
/*
|
|
|
|
* This software is licensed under the terms of the MIT-License
|
|
|
|
* See COPYING for further information.
|
|
|
|
* ---
|
|
|
|
* Copyright (c) 2011-2019, Lukas Weber <laochailan@web.de>.
|
|
|
|
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef IGUARD_common_tasks_h
|
|
|
|
#define IGUARD_common_tasks_h
|
|
|
|
|
|
|
|
#include "taisei.h"
|
|
|
|
|
|
|
|
#include "coroutine.h"
|
|
|
|
#include "item.h"
|
2019-09-01 02:23:36 +02:00
|
|
|
#include "move.h"
|
|
|
|
#include "entity.h"
|
2019-07-21 08:51:47 +02:00
|
|
|
|
|
|
|
DECLARE_EXTERN_TASK(
|
|
|
|
common_drop_items,
|
|
|
|
{ complex *pos; ItemCounts items; }
|
|
|
|
);
|
|
|
|
|
2019-09-01 02:23:36 +02:00
|
|
|
DECLARE_EXTERN_TASK(
|
|
|
|
common_move,
|
|
|
|
{ complex *pos; MoveParams move_params; BoxedEntity ent; }
|
|
|
|
);
|
|
|
|
|
|
|
|
DECLARE_EXTERN_TASK(
|
|
|
|
common_move_ext,
|
|
|
|
{ complex *pos; MoveParams *move_params; BoxedEntity ent; }
|
|
|
|
);
|
|
|
|
|
|
|
|
void common_move_loop(complex *restrict pos, MoveParams *restrict mp);
|
|
|
|
|
2019-07-21 08:51:47 +02:00
|
|
|
#endif // IGUARD_common_tasks_h
|