X-Git-Url: https://code.consxy.com/gitweb/gitweb.cgi?p=clnl;a=blobdiff_plain;f=src%2Fmain%2Fnvm%2Fnvm.lisp;h=0a819ae4041322011e584b7dda08a59f2f792863;hp=f59e18138a0bd1d1d0b874f7284ab058c85a8c21;hb=ef8590a;hpb=c11c429d212f7a08391cc117b9facd938cd80e63 diff --git a/src/main/nvm/nvm.lisp b/src/main/nvm/nvm.lisp index f59e181..0a819ae 100644 --- a/src/main/nvm/nvm.lisp +++ b/src/main/nvm/nvm.lisp @@ -421,7 +421,7 @@ DESCRIPTION: ; Someday we'll have d, but this is not that day! (cl-ppcre:regex-replace "d-" (cl-ppcre:regex-replace "d0" output "") "E-"))))) -(defmethod dump-object ((o string)) o) +(defmethod dump-object ((o string)) (format nil "~A" (cl-ppcre:regex-replace-all "\"" (format nil "~S" o) "\"\""))) (defmethod dump-object ((o (eql t))) "true") (defmethod dump-object ((o (eql nil))) "false") @@ -460,7 +460,8 @@ DESCRIPTION: :color (turtle-color turtle) :xcor (turtle-xcor turtle) :ycor (turtle-ycor turtle) - :heading (turtle-heading turtle))) + :heading (turtle-heading turtle) + :size (turtle-size turtle))) *turtles*) (mapcar (lambda (patch) @@ -480,13 +481,16 @@ DESCRIPTION: (mapcar (lambda (turtle) (format nil - "\"~A\",\"~A\",\"~A\",\"~A\",\"~A\",~A" + "\"~A\",\"~A\",\"~A\",\"~A\",\"~A\",\"\"\"default\"\"\",\"~A\",\"~A\",\"{all-turtles}\",\"false\",\"~A\",~A" (dump-object (turtle-who turtle)) (dump-object (turtle-color turtle)) (dump-object (turtle-heading turtle)) (dump-object (turtle-xcor turtle)) (dump-object (turtle-ycor turtle)) - "\"\"\"default\"\"\",\"\"\"\"\"\",\"9.9\",\"{all-turtles}\",\"false\",\"1\",\"1\",\"\"\"up\"\"\"")) + (dump-object (turtle-label turtle)) + (dump-object (turtle-label-color turtle)) + (dump-object (turtle-size turtle)) + "\"1\",\"\"\"up\"\"\"")) *turtles*))) (defun export-patches ()