From: jsancho Date: Fri, 30 Mar 2012 15:37:31 +0000 (+0000) Subject: Addons to mobs. X-Git-Url: https://git.jsancho.org/?p=gacela.git;a=commitdiff_plain;h=02ae552207feac8d16c9cd9bd91718cb60f42661 Addons to mobs. --- diff --git a/src/addons.scm b/src/addons.scm new file mode 100644 index 0000000..864495d --- /dev/null +++ b/src/addons.scm @@ -0,0 +1,23 @@ +;;; Gacela, a GNU Guile extension for fast games development +;;; Copyright (C) 2009 by Javier Sancho Fernandez +;;; +;;; This program 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 3 of the License, or +;;; (at your option) any later version. +;;; +;;; This program 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 this program. If not, see . + + +(define-module (gacela addons) + #:export-syntax (define-addon)) + +(define-macro (define-addon head . body) + (let ((addon-name (car head)) + (attr (map (lambda (a) (if (list? a) a (list a #f))) (cdr head))) \ No newline at end of file