View Single Post
  #15  
Old 06-21-2007, 03:44 AM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Here is a little something I whipped together after my recent discovery.
PHP Code:
function onCreated() {
  
this.types null;
  
// X System
  
maketype("XObject"null, {"util_triggerall""type_xobject"});
  
maketype("XTestObject"TXObject, {"type_xtestobject"});
  
// Mud
  
maketype("XMudObject"TXObject, {"type_xmudobject"});
  
maketype("XMudItem"TXMudObject, {"type_xmuditem"});
  
maketype("XMudContainer"TXMudObject, {"type_xmudcontainer"});
  
maketype("XMudPlayer"TXMudContainer, {"type_xmudplayer"});
  
// Misc
  
maketype("Rectangle"null, {"type_rectangle"});
  
maketype("Vector"null, {"type_vector"});
}
public function 
maketype(typenamesuperclasses) {
  
temp.0;
  
  if ((@
"T"@typename) != null) {
    (@
"T"@typename).destroy();
  }
  
this.(@ "type_" typename) = new TStaticVar("T"@typename);
  if (
super.type() == 2) {
    
this.(@ "type_" typename).joinedclasses super.joinedclasses;
  }
  for (
iclasses) {
    
this.(@ "type_" typename).join(i);
  }
  if (
this.types.index("T"@typename) < 0) {
    
this.types.add("T"@typename);
  }

Quote:
Originally Posted by Kristi View Post
Tol made a good contribution. Can someone point out to me why it was neccessary to start a big argument with name calling? By someone, perhaps Inverness is best suited to answer.

It is just this over and over on these forums anymore...
Arguments make things interesting to myself. Also I hope you noted the fact that he mentioned my name first in his initial post. As far as I'm concerned that gives me the right to counter, I don't appreciate your accusations. Also, I assume that hes saying that his script is a suitable replacement for the custom object types that I've mentioned many times before and however much I like the script it is certainly not what I want.
Quote:
Originally Posted by zokemon
Agreed. Inverness found out his accusations were wrong, I think an apology is in order.
Please point out the 'accusations' you speak of. Also don't overlook "I take it back" this time.
__________________

Last edited by Inverness; 06-21-2007 at 04:13 AM..
Reply With Quote