gcewing / SGCraft

Stargates mod for Minecraft
http://www.cosc.canterbury.ac.nz/greg.ewing/minecraft/mods/SGCraft/
MIT License
11 stars 50 forks source link

[Suggestion] RF or EU #41

Open Nex4rius opened 7 years ago

Nex4rius commented 7 years ago

Please add a method in the OC / CC intergration to check if the power units connected to the stargate are EU or RF. With that it would be possible to automatically switch the control programs to display energy in EU or RF without requiring user input.

gcewing commented 7 years ago

Nexarius wrote:

Please add a method in the OC / CC intergration to check if the power units connected to the stargate are EU or RF. With that it would be possible to automatically switch the control programs to display energy in EU or RF without requiring user input.

Not sure about that. At any given moment, power could be available to the stargate in any combination of EU, RF and naquadah. Providing ways of querying all that information would be complicated.

What might be better would be to provide a computer interface to the power unit itself for querying its type and power level. I'll think about that.

-- Greg

Nex4rius commented 7 years ago

Why would that be complicated? Something like this

=sg.energySource() {RF = false, EU = true, Naquadah = false}

The exact combination that is used doesn't have to be reported back.

StargateMC commented 7 years ago

The ciAvailableEnergy() method shows power in SG - which is SGCraft's own power unit.

1 SG is 20 EU 1 SG is 80 RF

I'd suggest you provide an interface that displays it in SG, or something like:

Power Available: 1 SG (20 EU / 80 RF)

The reason you should cater for both (my opinion here) is because you can have a combination of different power sources under the gate at any time, so using this request to display one power unit in your computer app is a bit pointless.

gcewing commented 7 years ago

Displaying in alternative units is something that can easily be handled by a program, so it doesn't belong in the interface.