diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-09-16 11:02:09 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-09-16 11:02:09 (GMT) |
| commit | 95bbd04d212a35d19af4f13375914971aeed758e (patch) | |
| tree | 533be8ff914afb13f0a97303f9c76bc0ed3277e5 /src/virtualmachine/Syscalls.cpp | |
| parent | 42ec654f3e38e8c037a948665d96789334f5b3d1 (diff) | |
| parent | ec0dfa27e888461ec85012fa23d5a26e30f0e813 (diff) | |
| download | powder-95bbd04d212a35d19af4f13375914971aeed758e.zip powder-95bbd04d212a35d19af4f13375914971aeed758e.tar.gz | |
Merge branch 'master' of github.com:FacialTurd/PowderToypp
Diffstat (limited to 'src/virtualmachine/Syscalls.cpp')
| -rw-r--r-- | src/virtualmachine/Syscalls.cpp | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/virtualmachine/Syscalls.cpp b/src/virtualmachine/Syscalls.cpp index bc88fb2..876fe52 100644 --- a/src/virtualmachine/Syscalls.cpp +++ b/src/virtualmachine/Syscalls.cpp @@ -68,4 +68,19 @@ namespace vm { sim->part_change_type(ARG(0).int4, ARG(1).int4, ARG(2).int4, ARG(3).int4); } -}
\ No newline at end of file + + TRAPDEF(pmapData) + { + Push<int4_t>(sim->pmap[ARG(1).int4][ARG(0).int4]); + } + + TRAPDEF(deletePart) + { + sim->delete_part(ARG(0).int4, ARG(1).int4, ARG(2).int4); + } + + TRAPDEF(killPart) + { + sim->kill_part(ARG(0).int4); + } +} |
