-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
+ Added some documentation to all public classes #42
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no
I'm sorry for all this docs |
OmsiHook/OmsiSplineSegment.cs
Outdated
@@ -1,5 +1,8 @@ | |||
namespace OmsiHook | |||
{ | |||
/// <summary> | |||
/// Segment of spline in a tile - splines are a type of mesh that has geometry, in comparisent to <seealso cref="OmsiPathSegment"/> which defines a track that a vehicle or human can follow, a spline or object can have several paths. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
spelling
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Split long lines.
OmsiHook/OmsiChronoChange.cs
Outdated
@@ -6,6 +6,9 @@ | |||
|
|||
namespace OmsiHook | |||
{ | |||
/// <summary> | |||
/// Base class for Chrono Changes, chrono changes / events, these are planned events that a map maker can add to make a map feel more dynamic over time. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Punctuation/Grammar
OmsiHook/OmsiChronoChangeLabels.cs
Outdated
@@ -6,6 +6,9 @@ | |||
|
|||
namespace OmsiHook | |||
{ | |||
/// <summary> | |||
/// List of stringvars relating to a chronochange |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add cref
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And fix capitalisation of ChronoChange
OmsiHook/OmsiComplMapObj.cs
Outdated
@@ -1,5 +1,8 @@ | |||
namespace OmsiHook | |||
{ | |||
/// <summary> | |||
/// Base class for complex map objects - used in vehicles and humans |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
used by vehicles and humans
OmsiHook/OmsiGlobals.cs
Outdated
@@ -65,6 +71,9 @@ public class OmsiGlobals : OmsiObject | |||
/// Current real weather config | |||
/// </summary> | |||
public OmsiActuWeather ActuWeather => new(Memory, Memory.ReadMemory<int>(0x00861278)); | |||
/// <summary> | |||
/// List of Humans present on the scene |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
List of Humans present in the scene
OmsiHook/OmsiHumanBeingInst.cs
Outdated
@@ -6,6 +6,9 @@ | |||
|
|||
namespace OmsiHook | |||
{ | |||
/// <summary> | |||
/// Instance of a <seealso cref="OmsiHumanBeing">Human Being</seealso>, instance version store the data that is current (runtime data), wheras the regular <seealso cref="OmsiHumanBeing"/> stores the data that has been pulled from disk |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Split long lines
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, grammar and run-on sentence.
OmsiHook/OmsiPathSegment.cs
Outdated
@@ -6,6 +6,9 @@ | |||
|
|||
namespace OmsiHook | |||
{ | |||
/// <summary> | |||
/// Segment between path points |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add the cref and explanation from OmsiSplineSegment
OmsiHook/OmsiPhysObjInst.cs
Outdated
@@ -1,5 +1,8 @@ | |||
namespace OmsiHook | |||
{ | |||
/// <summary> | |||
/// Instance of <seealso cref="OmsiPhysObj"/>, all the runtime realtime data |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Grammar
Also there were a few structs have translations added as comments after the field, which should be turned into proper documentation comments: public int TagErledigt; // day done? (Day of week maybe? - OmsiTTTourValid?)
## Becomes:
/// <summary>
/// Day done (Day of week maybe? - OmsiTTTourValid?).
/// <summary/>
public int TagErledigt; Also for ///<summary>
/// Busstop, estimated arrival and departure, actual arrival and departure, arrived on time, departed on time
///</summary>
public struct OmsiTTLogDetailed Oh yeah, and there are still a few cases of tabs being used instead of spaces in |
No description provided.