Quote:
Originally Posted by Raelyn
Ok, so if I take all my functions from my base system script, and make the classes all functions, I can just go through and replace all the functions listed in the script with:
PHP Code:
function onCreated() {
join("class_name");
}
Is that right? What is the echo? And will GS1 and GS2 mix? It seems like they mix, but only that GS2 doesn't work offline.. is that right?
|
Well, echo() will output test into RC serverside, and into F2 clientside.
What join() do, is that it takes the content of the class (all the functions and such) and applies it to the script/object that is joining the class.