diff options
author | Elisey Puzko <puzko.e02@gmail.com> | 2018-02-22 20:07:08 +0100 |
---|---|---|
committer | Elisey Puzko <puzko.e02@gmail.com> | 2018-02-22 20:07:08 +0100 |
commit | 228423d91518d0b8bd1c4bf047f3d378567e00f9 (patch) | |
tree | e05f4d5ddb11794bb4eb8691e8970d063599e669 /src/GlobalState.cpp | |
parent | New event: SelectedBlockChanged (diff) | |
download | AltCraft-228423d91518d0b8bd1c4bf047f3d378567e00f9.tar AltCraft-228423d91518d0b8bd1c4bf047f3d378567e00f9.tar.gz AltCraft-228423d91518d0b8bd1c4bf047f3d378567e00f9.tar.bz2 AltCraft-228423d91518d0b8bd1c4bf047f3d378567e00f9.tar.lz AltCraft-228423d91518d0b8bd1c4bf047f3d378567e00f9.tar.xz AltCraft-228423d91518d0b8bd1c4bf047f3d378567e00f9.tar.zst AltCraft-228423d91518d0b8bd1c4bf047f3d378567e00f9.zip |
Diffstat (limited to 'src/GlobalState.cpp')
-rw-r--r-- | src/GlobalState.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/GlobalState.cpp b/src/GlobalState.cpp index 73a34cb..8d75bac 100644 --- a/src/GlobalState.cpp +++ b/src/GlobalState.cpp @@ -163,6 +163,10 @@ void PhysExec() { gs->CancelDigging(); }); + listener.RegisterHandler("RmbPressed", [](const Event& eventData) { + gs->PlaceBlock(); + }); + listener.RegisterHandler("SelectedBlockChanged", [](const Event& eventData) { //TODO: //gs->CancelDigging(); |