homepage/_posts/2017-05-14-opensettlersii-6.md
2020-04-02 10:10:22 +02:00

20 lines
1.1 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
ID: 128
post_title: 'OpenSettlersII #6'
author: dreat
post_excerpt: ""
layout: post
permalink: >
http://dreat.info/2017/05/14/opensettlersii-6/
published: true
post_date: 2017-05-14 20:38:02
---
<a href="https://github.com/Dreat/OpenSettlersII/commit/591554e9b2fdc1eeddba9dbde631a4b233241b9a" target="_blank" rel="noopener noreferrer">As always, a commit!</a>
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 <em>{:ok, response}</em>/<em>{:error, message}</em>. 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 :)