MarciXs
Sorceror
Support in core for user calls.
How about a delegate in core, to which you could tie your methods ?
Like
public delegate void CoreMethodHandler();
and then in the core add a
public static CoreMethodHandler UserMethods;
then add it just after the ScriptCompiler has done everything.
like, UserMethods();
I would appreciate it ... I mean, It would really allow to build few things, that aren't possible without this. Well, maybe they are, however. There are few issues. And the workaround is either to modify the core, which is not something I would want to do... or just look for workaround.
So yeah, the point of this?
In your scripts you could do something like Server.Core.UserMethods += new CoreMethodHandler(myMethod);
public static void myMethod()
{
// Do something you want to do..
}
You could get a chance to modify stuff or run within the core this way, well not exactly run. But modify variables that you normally couldn't...
Thanks.
How about a delegate in core, to which you could tie your methods ?
Like
public delegate void CoreMethodHandler();
and then in the core add a
public static CoreMethodHandler UserMethods;
then add it just after the ScriptCompiler has done everything.
like, UserMethods();
I would appreciate it ... I mean, It would really allow to build few things, that aren't possible without this. Well, maybe they are, however. There are few issues. And the workaround is either to modify the core, which is not something I would want to do... or just look for workaround.
So yeah, the point of this?
In your scripts you could do something like Server.Core.UserMethods += new CoreMethodHandler(myMethod);
public static void myMethod()
{
// Do something you want to do..
}
You could get a chance to modify stuff or run within the core this way, well not exactly run. But modify variables that you normally couldn't...
Thanks.