diff options
author | Colin Okay <colin@cicadas.surf> | 2022-12-26 19:04:09 -0800 |
---|---|---|
committer | Colin Okay <colin@cicadas.surf> | 2022-12-26 19:04:09 -0800 |
commit | 28ea7808fe26547c7cefd7709f6a46e55b56a0d9 (patch) | |
tree | 9791f7b94e8e91ac972a84e7f08fb556814c66cb | |
parent | 79272ef4a0cf6e3f93333f239dd36159202fbbba (diff) |
Refactor: has-uid and can-equip to mixins
-rw-r--r-- | model.lisp | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -19,11 +19,11 @@ (defun renown (hero) (experience hero)) -(defclass has-uid (db:store-object) +(defclass has-uid () ((nuid :reader uid :initform (nuid))) (:metaclass db:persistent-class)) -(defclass can-equip (db:store-object) +(defclass can-equip () ((equipment-table :initform (make-hash-table)) (equipment-slot-names @@ -35,7 +35,7 @@ ;; TODO: define an equip protocol ;; a user -(defclass hero (can-equip has-uid) +(defclass hero (db:store-object can-equip has-uid) ((name :accessor hero-name :initarg :name |