This repository has been archived by the owner on Jan 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 895
Get Ore Markers in the Programmable Block #567
Open
DoubleCouponDay
wants to merge
26
commits into
KeenSoftwareHouse:master
Choose a base branch
from
DoubleCouponDay:GetOreMarkersInPB
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 22 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
2463505
finished the pull request
507bea4
Refined a couple names.
2a6f511
refined a couple names.
27334a6
refined a couple names.
79ef9a8
changed struct name in order to follow the code design rules.
1edb274
refined some names.
d424eb2
Refactored slightly to maximize performance.
10e04ad
Checks for null and does its job anyway.
95ec518
Added more information to struct MyOreMarker and added more informati…
855aa1d
no message
fd1bfde
no message
288ccee
no message
fb0c938
exposed subtypeID due to request.
c45256a
Deposit unpacking method now matches the visible ore markers.
3cbf20e
fixed a small compilation error.
4fb7a9c
fixed a null exception in my code.
cf6d8b3
Finished, Polished, Tested.
2ef491c
Realised I dont need to prevent access of an ore detector with no owner.
ffebf73
minor text change
75ac63c
ref makes it clear to the user how exactly they will get their ore ma…
16f9340
GetOreMarkers() now prevents excessively fast runs. Removed duplicate…
86cd578
tweaked MyOreDetectorComponent.Update() to perform exactly the same a…
84e8841
Made the rate the method can run at in line with simulation updates.
d92c5bf
Removed unnecessary ref
Pharap a1feff6
Removed unnecessary ref
Pharap c51dfcb
Merge pull request #1 from Pharap/GetOreMarkersInPB
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
wouldn't
++MethodCallRateCounter
be better?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.
Increment before viewing the number? why does it matter?
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.
Because than no duplicate of the variable is created which would be returned at this point.
Like this:
varType incrementBeforeReturn() { var = var +1; return var; }
varType incrementAfterReturn() { varType prev = var; var = var +1; return prev; }
incrementing before before return therefore reduces memory consumption and runtime
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.
The compiler does this automaticly, no need to worry