2016-12-30 03:18:53 +00:00
|
|
|
/*
|
|
|
|
* command.h
|
|
|
|
*
|
|
|
|
* Created on: Dec 29, 2016
|
|
|
|
* Author: root
|
|
|
|
*/
|
|
|
|
|
2019-05-02 08:09:24 +00:00
|
|
|
#ifndef BASIN_COMMAND_H_
|
|
|
|
#define BASIN_COMMAND_H_
|
2016-12-30 03:18:53 +00:00
|
|
|
|
2019-04-14 20:45:32 +00:00
|
|
|
#include <basin/player.h>
|
2016-12-30 03:18:53 +00:00
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
void init_base_commands();
|
|
|
|
|
|
|
|
void registerCommand(char* command, void (*callback)(struct player* player, char** args, size_t args_count));
|
|
|
|
|
2019-04-25 06:34:18 +00:00
|
|
|
void callCommand(struct player* player, struct mempool* pool, char* command);
|
2016-12-30 03:18:53 +00:00
|
|
|
|
2019-05-02 08:09:24 +00:00
|
|
|
#endif /* BASIN_COMMAND_H_ */
|