http://ko.doc.boardgamearena.com/index.php?title=Game_material_description:_material.inc.php&feed=atom&action=historyGame material description: material.inc.php - 편집 역사2024-03-29T14:31:12Z이 문서의 편집 역사MediaWiki 1.39.0http://ko.doc.boardgamearena.com/index.php?title=Game_material_description:_material.inc.php&diff=497&oldid=prev2013년 1월 11일 (금) 15:23에 Sourisdudesert님의 편집2013-01-11T15:23:52Z<p></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="ko">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← 이전 판</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">2013년 1월 11일 (금) 16:23 판</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l2">2번째 줄:</td>
<td colspan="2" class="diff-lineno">2번째 줄:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>This file is include by the constructor of your main game logic (yourgame.game.php), and then the variables defined here are accessible everywhere in your game logic file.</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>This file is include by the constructor of your main game logic (yourgame.game.php), and then the variables defined here are accessible everywhere in your game logic file.</div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">Using material.inc.php makes your PHP logic file smaller and clean.</ins></div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Example from "Hearts": if you define this in material.inc.php:</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Example from "Hearts": if you define this in material.inc.php:</div></td></tr>
</table>Sourisdudeserthttp://ko.doc.boardgamearena.com/index.php?title=Game_material_description:_material.inc.php&diff=496&oldid=prevSourisdudesert: Created page with "This PHP file describes all the material of your game. This file is include by the constructor of your main game logic (yourgame.game.php), and then the variables defined her..."2013-01-11T15:18:46Z<p>Created page with "This PHP file describes all the material of your game. This file is include by the constructor of your main game logic (yourgame.game.php), and then the variables defined her..."</p>
<p><b>새 문서</b></p><div>This PHP file describes all the material of your game.<br />
<br />
This file is include by the constructor of your main game logic (yourgame.game.php), and then the variables defined here are accessible everywhere in your game logic file.<br />
<br />
Example from "Hearts": if you define this in material.inc.php:<br />
<br />
<pre><br />
$this->colors = array(<br />
1 => array( 'name' => clienttranslate('spade'),<br />
'nametr' => self::_('spade') ),<br />
2 => array( 'name' => clienttranslate('heart'),<br />
'nametr' => self::_('heart') ),<br />
3 => array( 'name' => clienttranslate('club'),<br />
'nametr' => self::_('club') ),<br />
4 => array( 'name' => clienttranslate('diamond'),<br />
'nametr' => self::_('diamond') )<br />
);<br />
</pre><br />
<br />
... you can access "$this->colors" everywhere in your PHP game logic file.</div>Sourisdudesert