PHP
Overview
Convert Static Game Data into PHP format.
Example
Basic/Basic.xlsm#Dictionary
| A | B | C |
|---|---|---|
| Id | Name | |
| 1 | Rice | |
| 2 | Bread | |
| 3 | Pasta |
yaml
header:
input_path:
- path: Basic/Basic.xlsm
sheet: 辞書
row: 1
base_type: Normal
source_type: Normal
container_type: Dictionary
output_path: Basic
name: BasicDictionary
fields:
- key: Id
name: id
type: Int
- key: Name
name: name
type: String
...
Output PHP
<?php
namespace Wiener;
/**
* This file is auto-generated.
*/
class BasicDictionary
{
public static $value =
[
1 => [ "Id" => 1, "Name" => 'ご飯' ],
2 => [ "Id" => 2, "Name" => 'パン' ],
3 => [ "Id" => 3, "Name" => 'パスタ' ]
];
}