Skip to content

Commit

Permalink
Documentation: Added remarks for ModConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
Emik03 committed Oct 3, 2021
1 parent c4d27e6 commit e0ad062
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#### [KeepCoding](index.md 'index')
### [KeepCoding](KeepCoding.md 'KeepCoding').[ModConfig<TSerialize>](ModConfig.TSerialize..md 'KeepCoding.ModConfig<TSerialize>')
## ModConfig<TSerialize>.ModConfig(string) Constructor
Creates a new [ModConfig<TSerialize>](ModConfig.TSerialize..md 'KeepCoding.ModConfig<TSerialize>') with the target file name and an optional event of when the file is read.
Creates a new [ModConfig<TSerialize>](ModConfig.TSerialize..md 'KeepCoding.ModConfig<TSerialize>') with the target file name and an optional event of when the file is read. A file will automatically be made if it doesn't exist. A JSON property defined in the type [TSerialize](ModConfig.TSerialize..md#KeepCoding.ModConfig.TSerialize..TSerialize 'KeepCoding.ModConfig<TSerialize>.TSerialize') that isn't in the file will automatically write to the file with said property.
```csharp
public ModConfig(string fileName);
```
Expand All @@ -12,3 +12,5 @@ The file name to get.

#### Exceptions
[ConstructorArgumentException](ConstructorArgumentException.md 'KeepCoding.Internal.ConstructorArgumentException')
### Remarks
In the editor, the constructor will not merge the default values of the type with the file.
2 changes: 1 addition & 1 deletion Documentation/ModConfig.TSerialize..HasReadSucceeded.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#### [KeepCoding](index.md 'index')
### [KeepCoding](KeepCoding.md 'KeepCoding').[ModConfig<TSerialize>](ModConfig.TSerialize..md 'KeepCoding.ModConfig<TSerialize>')
## ModConfig<TSerialize>.HasReadSucceeded Property
Whether or not there has been a successful read of the settings file.
Whether or not there has been a successful read of the settings file. This value will always be false in the editor.
```csharp
public bool HasReadSucceeded { get; set; }
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@ Determines whether it should remove values from the original file that isn't con

#### Exceptions
[System.NullReferenceException](https://docs.microsoft.com/en-us/dotnet/api/System.NullReferenceException 'System.NullReferenceException')
### Remarks
In the editor, this method does nothing.
4 changes: 3 additions & 1 deletion Documentation/ModConfig.TSerialize..ModConfig().md
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
#### [KeepCoding](index.md 'index')
### [KeepCoding](KeepCoding.md 'KeepCoding').[ModConfig<TSerialize>](ModConfig.TSerialize..md 'KeepCoding.ModConfig<TSerialize>')
## ModConfig<TSerialize>.ModConfig() Constructor
Creates a new [ModConfig<TSerialize>](ModConfig.TSerialize..md 'KeepCoding.ModConfig<TSerialize>') with the target file name and an optional event of when the file is read.
Creates a new [ModConfig<TSerialize>](ModConfig.TSerialize..md 'KeepCoding.ModConfig<TSerialize>') with the target file name and an optional event of when the file is read. A file will automatically be made if it doesn't exist. A JSON property defined in the type [TSerialize](ModConfig.TSerialize..md#KeepCoding.ModConfig.TSerialize..TSerialize 'KeepCoding.ModConfig<TSerialize>.TSerialize') that isn't in the file will automatically write to the file with said property.
```csharp
public ModConfig();
```
#### Exceptions
[ConstructorArgumentException](ConstructorArgumentException.md 'KeepCoding.Internal.ConstructorArgumentException')
### Remarks
In the editor, the constructor will not merge the default values of the type with the file.
2 changes: 2 additions & 0 deletions Documentation/ModConfig.TSerialize..Read().md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ public TSerialize Read();
```
#### Returns
[TSerialize](ModConfig.TSerialize..md#KeepCoding.ModConfig.TSerialize..TSerialize 'KeepCoding.ModConfig<TSerialize>.TSerialize')
### Remarks
In the editor, this method returns the default value of the constructor in [TSerialize](ModConfig.TSerialize..md#KeepCoding.ModConfig.TSerialize..TSerialize 'KeepCoding.ModConfig<TSerialize>.TSerialize').
2 changes: 2 additions & 0 deletions Documentation/ModConfig.TSerialize..ToString().md
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ public override string ToString();
#### Returns
[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')
A string representation of the value from [Read()](ModConfig.TSerialize..Read().md 'KeepCoding.ModConfig<TSerialize>.Read()').
### Remarks
In the editor, this method serializes the default value of the constructor in [TSerialize](ModConfig.TSerialize..md#KeepCoding.ModConfig.TSerialize..TSerialize 'KeepCoding.ModConfig<TSerialize>.TSerialize').
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ The value to overwrite the settings file with.

#### Exceptions
[System.NullReferenceException](https://docs.microsoft.com/en-us/dotnet/api/System.NullReferenceException 'System.NullReferenceException')
### Remarks
In the editor, this method does nothing.
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ The contents to write.

#### Exceptions
[NullIteratorException](NullIteratorException.md 'KeepCoding.Internal.NullIteratorException')
### Remarks
In the editor, this method does nothing.
6 changes: 3 additions & 3 deletions Documentation/ModConfig.TSerialize..md
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ Implements [ILog](ILog.md 'KeepCoding.ILog')
| Constructors | |
| :--- | :--- |
| [ModConfig()](ModConfig.TSerialize..ModConfig().md 'KeepCoding.ModConfig&lt;TSerialize&gt;.ModConfig()') | Creates a new [ModConfig&lt;TSerialize&gt;](ModConfig.TSerialize..md 'KeepCoding.ModConfig&lt;TSerialize&gt;') with the target file name and an optional event of when the file is read.<br/> |
| [ModConfig(string)](ModConfig.TSerialize...ctor.ZKsea+H43MefB36oOBiG5g.md 'KeepCoding.ModConfig&lt;TSerialize&gt;.ModConfig(string)') | Creates a new [ModConfig&lt;TSerialize&gt;](ModConfig.TSerialize..md 'KeepCoding.ModConfig&lt;TSerialize&gt;') with the target file name and an optional event of when the file is read.<br/> |
| [ModConfig()](ModConfig.TSerialize..ModConfig().md 'KeepCoding.ModConfig&lt;TSerialize&gt;.ModConfig()') | Creates a new [ModConfig&lt;TSerialize&gt;](ModConfig.TSerialize..md 'KeepCoding.ModConfig&lt;TSerialize&gt;') with the target file name and an optional event of when the file is read. A file will automatically be made if it doesn't exist. A JSON property defined in the type [TSerialize](ModConfig.TSerialize..md#KeepCoding.ModConfig.TSerialize..TSerialize 'KeepCoding.ModConfig&lt;TSerialize&gt;.TSerialize') that isn't in the file will automatically write to the file with said property.<br/> |
| [ModConfig(string)](ModConfig.TSerialize...ctor.ZKsea+H43MefB36oOBiG5g.md 'KeepCoding.ModConfig&lt;TSerialize&gt;.ModConfig(string)') | Creates a new [ModConfig&lt;TSerialize&gt;](ModConfig.TSerialize..md 'KeepCoding.ModConfig&lt;TSerialize&gt;') with the target file name and an optional event of when the file is read. A file will automatically be made if it doesn't exist. A JSON property defined in the type [TSerialize](ModConfig.TSerialize..md#KeepCoding.ModConfig.TSerialize..TSerialize 'KeepCoding.ModConfig&lt;TSerialize&gt;.TSerialize') that isn't in the file will automatically write to the file with said property.<br/> |

| Properties | |
| :--- | :--- |
| [HasReadSucceeded](ModConfig.TSerialize..HasReadSucceeded.md 'KeepCoding.ModConfig&lt;TSerialize&gt;.HasReadSucceeded') | Whether or not there has been a successful read of the settings file.<br/> |
| [HasReadSucceeded](ModConfig.TSerialize..HasReadSucceeded.md 'KeepCoding.ModConfig&lt;TSerialize&gt;.HasReadSucceeded') | Whether or not there has been a successful read of the settings file. This value will always be false in the editor.<br/> |

| Methods | |
| :--- | :--- |
Expand Down

0 comments on commit e0ad062

Please sign in to comment.