Blockland Forums > Modification Help
RECOMMENDATION: Use the default 'Stack' class type.
Bauklotz:
That is currect, but then we could just use:
--- Code: ---function Stack::onAdd(%this) {
%this.count = 0;
}
function Stack::push(%this, %data) {
%this.data[%this.count] = %data;
%this.count++;
}
function Stack::pop(%this) {
%this.count--;
%this.data[%this.count] = "";
}
--- End code ---
Kalphiter:
Badspot needs to implement the ArrayList stuff somewhere on TGE's site
Ephialtes:
The resource for arrays in TorqueScript looked horrific. I'd rather have no arrays as opposed to a really bad implementation.