Created
October 1, 2013 07:19
-
-
Save anonymous/6774904 to your computer and use it in GitHub Desktop.
EAI2SAI v3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class EAI | |
{ | |
private $texts = array(); | |
public function __construct($creatureId, $creatureName) | |
{ | |
$this->creatureId = $creatureId; | |
$this->creatureName = $creatureName; | |
} | |
public function HasTexts() { return count($this->texts); != 0; } | |
public function GenerateTexts() | |
{ | |
$texts = $this->texts; | |
foreach ($texts as &$text) | |
$text = $text->ToArray(); | |
$this->texts = $texts; | |
} | |
} | |
class CreatureTexts | |
{ | |
publlic function __construct($eaiTextData) { $this->_dbData = $eaiTextData; } | |
public function ToArray() | |
{ | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment