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

net.ReadType no longer requires an argument #821

Merged
merged 1 commit into from
Mar 26, 2015
Merged

net.ReadType no longer requires an argument #821

merged 1 commit into from
Mar 26, 2015

Conversation

willox
Copy link
Contributor

@willox willox commented Sep 29, 2014

This makes it actually make sense to use, but also keeps backwards compatibility to help any poor soul who has used it anyway.

Also updates net.WriteTable and net.ReadTable to use it, which makes them a bit easier to understand.

@willox willox closed this Oct 1, 2014
@willox willox deleted the net branch October 1, 2014 15:56
@willox willox restored the net branch October 1, 2014 15:59
@willox willox reopened this Oct 1, 2014
@MattJeanes
Copy link

I've never understood why this wasn't default behaviour. I guess some people want to manually grab the typeid to store it or something?

@willox
Copy link
Contributor Author

willox commented Oct 14, 2014

It definitely makes no sense as it is seeing as WriteType doesn't take the TypeID as a parameter. Either way, this PR keeps backwards-compatibility.

This makes it actually make sense to use, but also keeps backwards
compatibility to help any poor soul who has used it anyway.
@willox
Copy link
Contributor Author

willox commented Mar 26, 2015

Updated to make this merge-able after #798.

robotboy655 added a commit that referenced this pull request Mar 26, 2015
net.ReadType no longer requires an argument
@robotboy655 robotboy655 merged commit 0b82457 into Facepunch:master Mar 26, 2015
@willox willox deleted the net branch March 26, 2015 19:32
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.

4 participants