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

Fix typos and styling in README.md (50% done) #17

Merged
merged 4 commits into from
May 6, 2022

Conversation

ghostbutter-games
Copy link
Contributor

Fixed some typos, styling and matched C# Naming Conventions in README.md as found here: https://docs.microsoft.com/en-us/dotnet/csharp/fundamentals/coding-style/coding-conventions#commenting-conventions

About 50% done, will fix the rest later.

@ghostbutter-games
Copy link
Contributor Author

All done, ready for review.

Copy link
Owner

@Byteron Byteron left a comment

Choose a reason for hiding this comment

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

a few minor nitpicks, otherwise good changes!

README.md Outdated
Comment on lines 171 to 173
// A Trigger!
// A Trigger!
// A Trigger!
Copy link
Owner

Choose a reason for hiding this comment

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

you changed the string, so the output changes too! :D

README.md Outdated
Comment on lines 189 to 191
// This also works for "tag" components without any data.
entity.Add<Old>(); // No trigger.
entity.Add<Old>(true); // Trigger.
Copy link
Owner

Choose a reason for hiding this comment

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

this also works with components that have data, but where no initial values are needed.

public struct Purse { public int Value; }

entity.Add<Purse>(); // initialized with Value = 0

Copy link
Contributor Author

@ghostbutter-games ghostbutter-games May 1, 2022

Choose a reason for hiding this comment

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

this also works with components that have data, but where no initial values are needed.

public struct Purse { public int Value; }

entity.Add<Purse>(); // initialized with Value = 0

So it works both for:

  • "Tag" components without any data
  • Components that have data, but where no initial values are needed

Is this correct?

Copy link
Owner

Choose a reason for hiding this comment

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

Yes, and it also works for components where initial values are needed.

README.md Outdated
Comment on lines 245 to 246
// This is called once on Node intialization.
public override void _Init()
Copy link
Owner

Choose a reason for hiding this comment

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

This probably needs to be _Ready(), when _Init() is not a thing in C#

@Byteron Byteron merged commit ab59957 into Byteron:main May 6, 2022
@Byteron
Copy link
Owner

Byteron commented May 6, 2022

Thanks!

@ghostbutter-games ghostbutter-games deleted the readme-fixes branch May 17, 2022 12:18
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