Quantcast
Channel: Programming (In-game)
Viewing all articles
Browse latest Browse all 645

How to use methods within void Main?

$
0
0
Good day,
I am bad at programming. Recently I've been reverse engineering a power display script. It's a fairly long code, so I'll just post the problematic part of it.
Code:
Void Main()
{
...
IMyTextPanel display = GridTerminalSystem.GetBlockWithName("Wide LCD panel") as IMyTextPanel;
display.WritePublicText(... , false);
}

public string CurrentPowerUse( string ReactorCurrent, string SolarCurrent)
{
...
string RawPowerUse = ....;...
How to use methods within void Main?

Viewing all articles
Browse latest Browse all 645

Trending Articles