is there any example to add csScript for scripting into a c++ application ?

144 views
Skip to first unread message

Muzaheed Ahsan

unread,
Mar 4, 2013, 9:48:15 PM3/4/13
to cs-s...@googlegroups.com
i want to add c# support for scripting into torque 3d game engine.

github.com/GarageGames/Torque3D


an example to add csScript on c++ app would be a grate help.

any kind of information will be highly appreciated.
thanks 
Message has been deleted

Oleg Shilo

unread,
Mar 5, 2013, 7:06:21 AM3/5/13
to cs-s...@googlegroups.com
The task is not trivial though possible.

The CS-Script engine is just an assembly so you only need to find the way of executing certain entry point of this assembly.

I have attached the source of the helper class I coded long time ago to execute managed assembly from unmanaged host app. You will need to rework it as the COM primary method has been deprecated. But it will give you an idea. 

Of course if you pass data in and out you will amslo need to solve arguments serialization problem but it is all doable.

Cheers
Oleg Shilo



--
You received this message because you are subscribed to the Google Groups "CS-Script" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cs-script+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

ClrRun.h

Muzaheed Ahsan

unread,
Mar 5, 2013, 8:40:29 AM3/5/13
to cs-s...@googlegroups.com
thanks for the replay.


" executing certain entry point of this assembly"
   any info on which entry points?


" You will need to rework it as the COM primary method has been deprecated"
   ok. i will try to adjust it.

Oleg Shilo

unread,
Mar 5, 2013, 11:03:13 PM3/5/13
to cs-s...@googlegroups.com
>>" executing certain entry point of this assembly"
>   any info on which entry points?
Any entry point of your interest. I would imagine that you may want to execute CSScriptLibarary.Evaluator.LoadMethod.
Reply all
Reply to author
Forward
0 new messages