-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into experiment/typemaker-1.1-rebase
- Loading branch information
Showing
42 changed files
with
539 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
|
||
/datum/foo | ||
/datum/foo/bar | ||
|
||
/proc/test_null() | ||
var/datum/D = new | ||
var/datum/foo/bar/B = astype(D) | ||
return isnull(B) | ||
|
||
/proc/test_type() | ||
var/datum/foo/bar/B = new | ||
var/datum/D = astype(B) | ||
var/datum/foo/F = astype(D) | ||
return F.type | ||
|
||
/proc/RunTest() | ||
ASSERT(test_null()) | ||
ASSERT(test_type() == /datum/foo/bar) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
|
||
/proc/RunTest() | ||
ASSERT(sign(5.2) == 1) | ||
ASSERT(sign(-5.2) == -1) | ||
ASSERT(sign(0) == 0) | ||
ASSERT(sign(null) == 0) | ||
ASSERT(sign("") == 0) | ||
ASSERT(sign("foo") == 0) | ||
ASSERT(sign(list(1)) == 0) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
|
||
/proc/RunTest() | ||
var/list/L = list("foo", "bar", "test", "value") | ||
L.Splice(2, 4, "lorem", "ipsum", "word", "another word") | ||
ASSERT(L ~= list("foo","lorem","ipsum","word","another word","value")) | ||
|
||
// Again with list() as the arg | ||
var/list/L2 = list("foo", "bar", "test", "value") | ||
L2.Splice(2, 4, list("lorem", "ipsum", "word", "another word")) | ||
ASSERT(L2 ~= list("foo","lorem","ipsum","word","another word","value")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/vector | ||
// TODO: Verify these default values | ||
var/len = 2 as num | ||
var/size = 0 as num | ||
var/x = 0 as num | ||
var/y = 0 as num | ||
var/z = 0 as num | ||
|
||
proc/New(x, y, z) | ||
|
||
proc/Cross(vector/B) | ||
set opendream_unimplemented = TRUE | ||
|
||
proc/Dot(vector/B) | ||
set opendream_unimplemented = TRUE | ||
|
||
proc/Interpolate(vector/B, t) | ||
set opendream_unimplemented = TRUE | ||
|
||
proc/Normalize() | ||
set opendream_unimplemented = TRUE | ||
|
||
proc/Turn(angle) | ||
set opendream_unimplemented = TRUE | ||
|
||
/proc/vector(x, y, z) | ||
return new /vector(x, y, z) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.