Nuke.Unreal
Build Unreal apps in Style.
Loading...
Searching...
No Matches
Nuke.Unreal.Ini.ConfigCommand Struct Reference

Structural representation of a config line in Unreal. More...

Public Member Functions

 ConfigCommand (string line, int order)
 
string Serialize ()
 
override bool Equals (object? obj)
 
override int GetHashCode ()
 

Static Public Member Functions

static bool operator== (ConfigCommand a, ConfigCommand b)
 
static bool operator!= (ConfigCommand a, ConfigCommand b)
 

Public Attributes

int Order
 Maintain the original position for this section as they were in the source file so serialization doesn't introduce that much unnecessary changes.
 
string Name
 Config item name.
 
string Value
 Everything on the right side of the = symbol on a config,.
 
bool IsQuotedString
 Was the value quoted originally in the source config file.
 
CommandType Type
 How this config item should apply its value.
 

Properties

string CommentText [get]
 Get the full text of a comment including = character and its right side.
 

Private Member Functions

string GetSerializedValue ()
 

Static Private Attributes

const string AllCommands = "+-!;"
 

Detailed Description

Structural representation of a config line in Unreal.

Definition at line 23 of file ConfigCommand.cs.

Constructor & Destructor Documentation

◆ ConfigCommand()

Nuke.Unreal.Ini.ConfigCommand.ConfigCommand ( string line,
int order )

Definition at line 73 of file ConfigCommand.cs.

Member Function Documentation

◆ Equals()

override bool Nuke.Unreal.Ini.ConfigCommand.Equals ( object? obj)

Definition at line 107 of file ConfigCommand.cs.

◆ operator!=()

static bool Nuke.Unreal.Ini.ConfigCommand.operator!= ( ConfigCommand a,
ConfigCommand b )
static

Definition at line 68 of file ConfigCommand.cs.

◆ operator==()

static bool Nuke.Unreal.Ini.ConfigCommand.operator== ( ConfigCommand a,
ConfigCommand b )
static

Definition at line 63 of file ConfigCommand.cs.

Member Data Documentation

◆ AllCommands

const string Nuke.Unreal.Ini.ConfigCommand.AllCommands = "+-!;"
staticprivate

Definition at line 25 of file ConfigCommand.cs.

◆ IsQuotedString

bool Nuke.Unreal.Ini.ConfigCommand.IsQuotedString

Was the value quoted originally in the source config file.

Definition at line 51 of file ConfigCommand.cs.

◆ Name

string Nuke.Unreal.Ini.ConfigCommand.Name

Config item name.

Definition at line 36 of file ConfigCommand.cs.

◆ Order

int Nuke.Unreal.Ini.ConfigCommand.Order

Maintain the original position for this section as they were in the source file so serialization doesn't introduce that much unnecessary changes.

Definition at line 31 of file ConfigCommand.cs.

◆ Type

CommandType Nuke.Unreal.Ini.ConfigCommand.Type

How this config item should apply its value.

Definition at line 56 of file ConfigCommand.cs.

◆ Value

string Nuke.Unreal.Ini.ConfigCommand.Value

Everything on the right side of the = symbol on a config,.

For comments the actual text of the comment is contained in Name, however if that comment has = character everything following that will be stored in Value. Use CommentText when dealing with comments.

Definition at line 46 of file ConfigCommand.cs.

Property Documentation

◆ CommentText

string Nuke.Unreal.Ini.ConfigCommand.CommentText
get

Get the full text of a comment including = character and its right side.

Definition at line 61 of file ConfigCommand.cs.


The documentation for this struct was generated from the following file: