View Single Post
  #1  
Old 08-23-2013, 06:09 PM
Cubical Cubical is offline
Banned
Join Date: Feb 2007
Posts: 1,348
Cubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant future
Joining and leaving classes

is there an event called when joining and/or leaving classes? Something along the lines of onJoinedClass(); and onLeaveClass();.

I'm at work right now so I cannot provide an exact example of what I'm currently doing but it's something along the lines of the following.

PHP Code:
functions loadClassData(temp.objtemp.classlist) {
  for (
temp.classnametemp.classlist) {
    if (
temp.classname in temp.obj.joinedclasses) {
      
temp.obj.(temp.classname "::onJoined")();
    } else {
      
temp.obj.join(temp.classname);
      
temp.obj.(temp.classname "::onJoined")();
    }
  }

I did a quick search and didn't see anything that stuck out.
Reply With Quote