ocraft / ocraft-s2client

StarCraft II Client - Java library supported on Windows, Linux and Mac designed for building scripted bots and research using the SC2API.
MIT License
55 stars 15 forks source link

Please include includes in the examples #1

Closed BraindeadOne closed 7 years ago

BraindeadOne commented 7 years ago

Since the examples rely on static and/or ambiguous imports it's little fun to puzzle the required statements together. It would be nice if you could either add them to the examples or include a link to a complete class below the extracts.

ocraft commented 7 years ago

You are right, the documentation is lacking right now. Actually there is a full code example: https://github.com/ocraft/ocraft-s2client/blob/master/ocraft-s2client-api/src/test/java/com/github/ocraft/s2client/api/OcraftS2ClientExamplesIT.java. I will try to polish documentation and add some links/sample project after I'll get more feedback from users. Currently I encourage you to look at the tests (especially OcraftS2ClientEndToEndIT.java and OcraftS2ClientExamplesIT.java) or ask me directly on discord channel (https://discordapp.com/channels/350289306763657218/381404462650097665).

ocraft commented 7 years ago

Ok, I improved documentation by adding required link and some description of basic step that should be done and where to start looking.