Skip to content
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

Merged
merged 17 commits into from
May 20, 2022
Merged

Conversation

amathieson
Copy link
Collaborator

No description provided.

@amathieson amathieson requested a review from space928 May 9, 2022 11:16
Copy link
Owner

@space928 space928 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no

@amathieson
Copy link
Collaborator Author

no

I'm sorry for all this docs

@amathieson amathieson requested a review from space928 May 9, 2022 17:42
@@ -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.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

spelling

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Split long lines.

@@ -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.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Punctuation/Grammar

@@ -6,6 +6,9 @@

namespace OmsiHook
{
/// <summary>
/// List of stringvars relating to a chronochange
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add cref

Copy link
Owner

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

@@ -1,5 +1,8 @@
namespace OmsiHook
{
/// <summary>
/// Base class for complex map objects - used in vehicles and humans
Copy link
Owner

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

@@ -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
Copy link
Owner

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

@@ -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
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Split long lines

Copy link
Owner

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.

@@ -6,6 +6,9 @@

namespace OmsiHook
{
/// <summary>
/// Segment between path points
Copy link
Owner

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

@@ -1,5 +1,8 @@
namespace OmsiHook
{
/// <summary>
/// Instance of <seealso cref="OmsiPhysObj"/>, all the runtime realtime data
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Grammar

@space928
Copy link
Owner

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 OmsiTTLogDetailed you use a single documentation comment for all fields, but in the docs the fields are reordered alphabetically, making it useless:

///<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 OmsiStructs

@amathieson amathieson requested a review from space928 May 10, 2022 12:49
@space928 space928 merged commit cab059e into main May 20, 2022
@space928 space928 deleted the general_docs branch May 20, 2022 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants