summary refs log tree commit diff stats
path: root/src/script_system.cpp
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2021-02-23 10:30:16 -0500
committerKelly Rauchenberger <fefferburbia@gmail.com>2021-02-23 10:30:16 -0500
commitae654356f843bb42a3c72d57b528d87aa63cf66d (patch)
treeeea634cf3c6358775bba463a77ce4e2fa6addc7e /src/script_system.cpp
parent1cf3ccd05b193e6090c3a61c0e2f54524e1a4ba7 (diff)
downloadtanetane-ae654356f843bb42a3c72d57b528d87aa63cf66d.tar.gz
tanetane-ae654356f843bb42a3c72d57b528d87aa63cf66d.tar.bz2
tanetane-ae654356f843bb42a3c72d57b528d87aa63cf66d.zip
Added a clipping mode (for testing!)
This allows walking through solid objects. It can be enabled and disabled using StartClipping() and StopClipping() in the debug console. It should not be used in any actual scripts.
Diffstat (limited to 'src/script_system.cpp')
-rw-r--r--src/script_system.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/script_system.cpp b/src/script_system.cpp index 769a872..2e02edf 100644 --- a/src/script_system.cpp +++ b/src/script_system.cpp
@@ -37,7 +37,8 @@ ScriptSystem::ScriptSystem(Game& game) : game_(game) {
37 return sprite.frames[sprite.animations[sprite.animationId].frameIndices[sprite.animationFrame]]; 37 return sprite.frames[sprite.animations[sprite.animationId].frameIndices[sprite.animationFrame]];
38 }, 38 },
39 "persistent", &Sprite::persistent, 39 "persistent", &Sprite::persistent,
40 "paused", &Sprite::paused); 40 "paused", &Sprite::paused,
41 "clipping", &Sprite::clipping);
41 42
42 engine_.new_usertype<MessageSystem>( 43 engine_.new_usertype<MessageSystem>(
43 "message", 44 "message",