summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcolin <colin@cicadas.surf>2023-04-01 09:52:02 -0700
committercolin <colin@cicadas.surf>2023-04-01 09:52:02 -0700
commit88bbe49e8ab81dc3d8bbb3b931fded730355263f (patch)
treeec3adc11bdc4953377f48c4335a197da08b59e76
parentcc3f850c514967ae2f9effef7e68e1d4965c6865 (diff)
Move has-uid into player.lisp
-rw-r--r--src/game/abstract.lisp8
-rw-r--r--src/player.lisp7
2 files changed, 7 insertions, 8 deletions
diff --git a/src/game/abstract.lisp b/src/game/abstract.lisp
index f54621e..d491dd8 100644
--- a/src/game/abstract.lisp
+++ b/src/game/abstract.lisp
@@ -2,15 +2,7 @@
(in-package :dnd)
-
;;; PERSISTENT MIXINS
-(defclass has-uid ()
- ((nuid :reader uid
- :initform (nuid)
- :index-type idx:string-unique-index
- :index-reader object-with-uid))
- (:metaclass db:persistent-class))
-
(defclass can-equip ()
((equipment-table
:initform nil
diff --git a/src/player.lisp b/src/player.lisp
index db78e57..11cd2b9 100644
--- a/src/player.lisp
+++ b/src/player.lisp
@@ -4,6 +4,13 @@
;;; MODEL CLASSES
+(defclass has-uid ()
+ ((nuid :reader uid
+ :initform (nuid)
+ :index-type idx:string-unique-index
+ :index-reader object-with-uid))
+ (:metaclass db:persistent-class))
+
(defclass player (db:store-object has-uid)
((nick
:reader nickname