Is it possible to register an objectin Angel as "unconstructable"? What I mean is, lets say I have a function:
OnHit(Player@ player)
{
DoSomething();
}
Now, I want to be able to pass in an object handle of type 'Player', but I don't want the script user to be able to actually instanciate a new object of type player. I am assuming that declaring a non-handle object is the same as instanciating it, like so:
Player somePlayer;
I am making this assumption because no 'new' keyword exists. Basically, is there any way to stop the script user from doing this? I don't want script users to be arbitrarily creating object instances all over the place. I will give them the data they need inside the script execution context.
EDIT: Let me preface this quickly with why this is important to me. I am evaluating using Angel as the backbone of a multi-user text game engine I am writing (oh yes, another MUD engine). Obviously I must be very strict in my control of the script environment. I can't let content builders go crazy and bring down the server, by accident or otherwise.
Matt Holmes[ aka Calefaction ]Wildfire Games - General Programmerhttp://www.wildfiregames.com