Arma Reforger Script API
|
Base class for interaction with mission headers. More...
Public Member Functions | |
proto external string | GetWorldPath () |
Returns the path to the world file. | |
proto external string | GetHeaderResourcePath () |
Returns the path to this mission header. | |
proto ResourceName | GetHeaderResourceName () |
Static Public Member Functions | |
static proto ref MissionHeader | ReadMissionHeader (string path) |
Reads mission header object from given file. | |
Base class for interaction with mission headers.
It is done this way so c++ can add its own parameters along with scripted ones as easily as possible
class TestingMissionHeader : MissionHeader { [Attribute(0, UIWidgets.EditBox)] int m_someValue; };
Example missionHeader.conf :
TestingMissionHeader { }
After creating this you should be able to read your mission header with all data by calling TestingMissionHeader myData = TestingMissionHeader.Cast(MissionHeader.ReadMissionHeader("path/to/missionHeader.conf"))
proto ResourceName MissionHeader.GetHeaderResourceName | ( | ) |
proto external string MissionHeader.GetHeaderResourcePath | ( | ) |
Returns the path to this mission header.
proto external string MissionHeader.GetWorldPath | ( | ) |
Returns the path to the world file.
|
static |
Reads mission header object from given file.