konstructs / server

A voxel based game server.
http://www.konstructs.org
MIT License
49 stars 12 forks source link

API: replace block if target block condition valid #91

Closed nsg closed 8 years ago

nsg commented 8 years ago

Based on top of the API changes in PR https://github.com/konstructs/server/pull/90 This PR will be rebased and merged after PR #90


This PR implements the new API message ReplaceBlockIf, it works like ReplaceBlock except there are an extra parameter with the block that you expect to replace.

If the expected block is there, ReplaceBlock will be called. If not, you will get an ReplaceBlockFailed message back.