From f7abccc38ceda7024ca375d34ed88f4fb561ef02 Mon Sep 17 00:00:00 2001 From: colin Date: Sun, 5 Mar 2023 16:36:44 -0800 Subject: Reorganized codebase --- transactions.lisp | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 transactions.lisp (limited to 'transactions.lisp') diff --git a/transactions.lisp b/transactions.lisp deleted file mode 100644 index acfa8c2..0000000 --- a/transactions.lisp +++ /dev/null @@ -1,22 +0,0 @@ -;;;; transactions.lisp -- data store transactions for dnd - -(in-package :dnd) - -(defun birth-from-the-goddess-loins (player name) - (db:with-transaction () - (make-instance 'hero :name name :player player))) - -(defun new-sesh (player) - (db:with-transaction () (make-instance 'session :player player))) - -(defun destroy-sesh (session) - (db:with-transaction () - (db:delete-object session))) - -(defun register-player (nick) - (db:with-transaction () - (make-instance 'player :nick nick))) - -(defun create-campaign (player title) - (db:with-transaction () - (make-instance 'campaign :title title :creator player))) -- cgit v1.2.3