OpenSettlersII #6

As always, a commit!

Slowly crawling towards functioning lib.

This commit is not really that different from other, yet I started using Elixir convetion for return values: the tuple {:ok, response}/{:error, message}. I am quite not happy with  the as_server function and I guess I will rename/rewrite it later. It’s quite obvious what it does - checks the rightmost bit and responds and sets “as server” to according boolean value.

Also, encoding and decoding version - I have no way of validating it, but I’m not sure if I should. This is one of two things I need to check before proceeding - another one being the Signature - I’m not sure if it’s version specific or not, so that’s something to get to know before coding it.

And that’s it for now :)

Written on May 14, 2017