Quote:
Originally Posted by Inverness
For "classes" use a TStaticVar and join a class to it or define its functions manually with function objects.
|
Not my point. The point is to allow classes to be included in Weapon scripts.
e.g.
PHP Code:
//#CLIENTSIDE
class Foo
{
virtual public void DoSomething() const { return "Something done..."; }
private int numeral;
}
class Bar extends Foo
{
public void DoSomething() const { return "Bar done..."; }
}
function onCreated()
{
bar = new Bar();
echo(bar.DoSomething());
}
Notice the inheritance and the virtual methods.