Created
February 15, 2015 08:11
-
-
Save TheBlackParrot/f49bb2714ec8bbd23e4c to your computer and use it in GitHub Desktop.
Blockland - get the topmost brick of a stack
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
function fxDTSBrick::getTopBrick(%this) { | |
%upbrick = %this; | |
while(isObject(%upbrick.getUpBrick(0))) { | |
%upbrick = %upbrick.getUpBrick(0); | |
} | |
return %upbrick; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment