SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > SH5 Mods Workshop
Forget password? Reset here

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 02-12-11, 10:55 AM   #11
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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 08:29 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 1995- 2025 Subsim®
"Subsim" is a registered trademark, all rights reserved.