Skip to content

Commit

Permalink
rearrange it a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
jupyterkat committed Nov 21, 2023
1 parent 69be787 commit 8187b0e
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions crates/byondapi-rs-test/dm_project/dm_project.dme
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,6 @@

del(src)

/test/proc/test_block()
world.maxz = 1
world.maxx = 2
world.maxy = 2

var/ret = call_ext("byondapi_test.dll", "byond:test_block")()

if(ret != 4)
throw EXCEPTION("Block failed [json_encode(ret)]")

world.maxz = 0
world.maxx = 0
world.maxy = 0

/test/proc/test_connection()
var/ret = call_ext("byondapi_test.dll", "byond:test_connection")()
if (ret != 69)
Expand All @@ -45,8 +31,10 @@
world.maxz = 1
world.maxx = 1
world.maxy = 1

var/turf/T = locate(1,1,1)
var/ret = call_ext("byondapi_test.dll", "byond:test_ref")(T)

world.maxz = 0
world.maxx = 0
world.maxy = 0
Expand Down Expand Up @@ -75,6 +63,20 @@
/datum/data
var/name = "test name"

/test/proc/test_block()
world.maxz = 1
world.maxx = 2
world.maxy = 2

var/ret = call_ext("byondapi_test.dll", "byond:test_block")()

if(ret != 4)
throw EXCEPTION("Block failed [json_encode(ret)]")

world.maxz = 0
world.maxx = 0
world.maxy = 0

/test/proc/test_readwrite_var()
var/datum/data/stub = new()

Expand Down

0 comments on commit 8187b0e

Please sign in to comment.