API:EBeamResource

From STNE Wiki

Revision as of 14:20, 4 May 2020 by Jacksfh (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Scripting Portal | Contents | API Reference | Index

EBeamResource is an Enumerator.

Each enumerator is provided with a list of possible values. These values are actually only integer values, see Enumerator for more information.

EBeamResource contains all the goods which can be beamed or transported using the script engine.

For example, the function Ship.Action.TransferToShip(toShipID As Integer, quantity As Double, resource As EBeamResource) requires a variable type of EBeamResource as the third parameter. If you want to beam deuterium for example the parameter must be specified as follows:

Var Ship As New CMyShip(123456);
Ship.Action.TransferToShip(654321,100,EBeamResource.Deuterium);

EBeamResource is defined with the following values:

Antimatter
Contrabands
Credits
Crew
Deuterium
Dilithium
Duranium
Energy
EscapePods
Food
Gifts
IridiumOre
IsoChips
Item
Larne
Latinum
Nitrium
PhotonTorpedoes
Plasma
PlasmaTorpedoes
Plasteel
QuantumTorpedoes
Sorium
Tribbles
Tritanium
Warpcore
Personal tools