From c05a8c4c52dcbd3346b7303b43797a6ce4ba875a Mon Sep 17 00:00:00 2001 From: MrZ_26 <1046101471@qq.com> Date: Sun, 8 Oct 2023 03:02:50 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=AE=9E=E9=AA=8C=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E3=80=91exterior=E6=B8=B8=E6=88=8F=E5=9C=BA=E6=99=AF=E6=8C=89i?= =?UTF-8?q?=E5=92=8Co=E9=94=AE=E5=8F=AF=E4=BB=A5=E5=AD=98/=E8=AF=BB?= =?UTF-8?q?=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/scene/game_out.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/assets/scene/game_out.lua b/assets/scene/game_out.lua index cc051e6a..cc63c77f 100644 --- a/assets/scene/game_out.lua +++ b/assets/scene/game_out.lua @@ -42,6 +42,11 @@ local function sysAction(action) end function scene.keyDown(key,isRep) if isRep then return end + if key=='i' then + love.system.setClipboardText(GAME.playerList[1]:serialize()) + elseif key=='o' then + GAME.playerList[1]:unserialize(love.system.getClipboardText()) + end local action local p=GAME.mainPlayer