Пример #1
0
        public Task <byte> CanCollectQueryAsync(ushort x, ushort y, byte tile, BlockParameter blockParameter = null)
        {
            var canCollectFunction = new CanCollectFunction();

            canCollectFunction.X    = x;
            canCollectFunction.Y    = y;
            canCollectFunction.Tile = tile;

            return(ContractHandler.QueryAsync <CanCollectFunction, byte>(canCollectFunction, blockParameter));
        }
Пример #2
0
 public Task <byte> CanCollectQueryAsync(CanCollectFunction canCollectFunction, BlockParameter blockParameter = null)
 {
     return(ContractHandler.QueryAsync <CanCollectFunction, byte>(canCollectFunction, blockParameter));
 }