summaryrefslogtreecommitdiff
path: root/src/script-squirrel.h
diff options
context:
space:
mode:
authorAaron Marks <nymacro@gmail.com>2005-05-09 09:47:20 +0000
committerAaron Marks <nymacro@gmail.com>2005-05-09 09:47:20 +0000
commitef30b72e8ad5379a7c7ee49b0ff680bde15daa66 (patch)
tree1fbe0f0ce2125bad89e548b1f2a1d392ee751205 /src/script-squirrel.h
parentb6f88ad42d2acf514804777e9cf0f4979566c163 (diff)
downloadmanaserv-ef30b72e8ad5379a7c7ee49b0ff680bde15daa66.tar.gz
manaserv-ef30b72e8ad5379a7c7ee49b0ff680bde15daa66.tar.bz2
manaserv-ef30b72e8ad5379a7c7ee49b0ff680bde15daa66.tar.xz
manaserv-ef30b72e8ad5379a7c7ee49b0ff680bde15daa66.zip
Renamed script-sq.* script-squirrel.*.
Renamed ScriptingInterface to Script (to save typing :)). Updated skill tree definition.
Diffstat (limited to 'src/script-squirrel.h')
-rw-r--r--src/script-squirrel.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/src/script-squirrel.h b/src/script-squirrel.h
new file mode 100644
index 00000000..e0413d3d
--- /dev/null
+++ b/src/script-squirrel.h
@@ -0,0 +1,48 @@
+/*
+ * The Mana World Server
+ * Copyright 2004 The Mana World Development Team
+ *
+ * This file is part of The Mana World.
+ *
+ * The Mana World is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * any later version.
+ *
+ * The Mana World is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with The Mana World; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ *
+ * $Id$
+ */
+
+#ifndef SCRIPT_SQUIRREL_H
+#define SCRIPT_SQUIRREL_H
+
+#include "script.h"
+#include <cstdio>
+#include <cstdlib>
+#include <cstdarg>
+#include <squirrel.h>
+#include <sqstdio.h>
+#include <sqstdaux.h>
+
+class ScriptSquirrel : public Script
+{
+ HSQUIRRELVM vm;
+
+ public:
+ ScriptSquirrel(const std::string &);
+ ~ScriptSquirrel();
+ void init();
+ void destroy();
+ void update();
+ void message(char *);
+};
+
+#endif