Guest
Public paste!

Untitled

By: a guest | Mar 15th, 2010 | Syntax: None | Size: 0.54 KB | Hits: 40 | Expires: Never
Copy text to clipboard
  1.     public module Projectile
  2.     {
  3.    
  4.         static method create(real x, real y, real z) -> thistype
  5.         {
  6.             thistype this = thistype.allocate();
  7.            
  8.             static if (thistype.onCreate.exists)
  9.             {
  10.                 this.onCreate();
  11.             }
  12.            
  13.             return this;
  14.         }
  15.        
  16.         method onDestroy()
  17.         {
  18.             static if (thistype.onRemove.exists)
  19.             {
  20.                 this.onRemove();
  21.             }
  22.         }
  23.    
  24.         module T32x;
  25.     }