This repository has been archived on 2025-03-20. You can view files and clone it, but cannot push or open issues or pull requests.
The-Powder-Toy/src/lua/TPTScriptInterface.h
mniip ff27d69424 Switch from std::string to String/ByteString in most of the code
Also switch SimulationData from weird arrays to std::vector
2018-04-30 21:13:24 +03:00

28 lines
871 B
C++

#ifndef TPTSCRIPTINTERFACE_H_
#define TPTSCRIPTINTERFACE_H_
#include "CommandInterface.h"
#include "TPTSTypes.h"
class TPTScriptInterface: public CommandInterface {
protected:
AnyType eval(std::deque<String> * words);
int parseNumber(String str);
AnyType tptS_set(std::deque<String> * words);
AnyType tptS_create(std::deque<String> * words);
AnyType tptS_delete(std::deque<String> * words);
AnyType tptS_load(std::deque<String> * words);
AnyType tptS_reset(std::deque<String> * words);
AnyType tptS_bubble(std::deque<String> * words);
AnyType tptS_quit(std::deque<String> * words);
ValueType testType(String word);
public:
TPTScriptInterface(GameController * c, GameModel * m);
virtual void Tick() {}
virtual int Command(String command);
virtual String FormatCommand(String command);
virtual ~TPTScriptInterface();
};
#endif /* TPTSCRIPTINTERFACE_H_ */