View Single Post
Old 02-12-11, 10:55 AM   #1012
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by tonyj View Post
Hi TDW,

Could you tell us the steps on how you've managed to replace the Python code with C# and if possible some object references that are available to you? Your finds have really spiked my interest now. i'm new to C# but have many years java experience.

I presume also that the graphics engine is C++ and out of bounds of any refactoring... Would love to fix that 100m distance large wave limit from your boat.

cheers,
TonyJ
If you add a reference to \Silent Hunter 5\ScriptManagerWrappers.dll to your project you have all the types available that the Script Editor shows. ScriptManagerWrappers is the top namespace and you use the familiar '.' convention to access all the other namespaces. i.e.: to pass a button object from the game to your external code would look like this:

C#:
public void SomeFunction( ScriptManagerWrappers.ButtonWrapper somebutton)
{
....
}

There are other namespaces available inside that .dll but for now this is the one that interests me
TheDarkWraith is offline   Reply With Quote