swichers/php-quickfort-parser
Composer 安装命令:
composer require swichers/php-quickfort-parser
包简介
Parser for QuickFort blueprint files.
README 文档
README
This is a simple library for parsing basic QuickFort blueprints. Only dig blueprints are implemented. There are no plans to actively work on this project, but pull requests for new features and layer types will be accepted.
Example
Usage
<?php declare(strict_types=1); use QuickFort\Parser\Dig; $blueprint = <<<BLUEPRINT_END #dig A simple dig blueprint d,~,~,# d,d,d,# ~,~,d,# #,#,#,# BLUEPRINT_END; $parser = new Dig(); $parser->setBlueprint($blueprint); $layers = $parser->getLayers();
Result
[
['d'],
['d', 'd', 'd'],
[2 => 'd'],
[],
]
Not implemented
- Build layer
- Place layer
- Query layer
Links
- Dwarf Fortress http://www.bay12games.com/dwarves/
- QuickFort http://www.joelpt.net/quickfort/
- QuickFort (GitHub) https://github.com/joelpt/quickfort
###*:::=####*:*############################
=++##*******++++
+++++++++*#++
-+++++++*++
-#####**#+
...... -##*+*#+#*
.:=====+--===.. :-#*+*#*#*
. := .*###*+#+
:= .#######
:= =#*++*
:= @@@%: -+####
-##@@@@@@: -++++*
-##@####. =####+
-###@@@%-. =###++
-######%@: =###+*
-#####%%@-. =*##+*
-####%%@@@#+. .=***#++
-######@@@@%=. .***#*++
-##=:::-#=---. +#**++**
.=#*.. .*#- -*########
.+##**. .*##+..+**#####*+##
#-.:-+###.*################################
###########################################
统计信息
- 总下载量: 3
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: LGPL-3.0
- 更新时间: 2019-07-26