Skip to content

Instantly share code, notes, and snippets.

Created October 1, 2013 07:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/6774904 to your computer and use it in GitHub Desktop.
Save anonymous/6774904 to your computer and use it in GitHub Desktop.
EAI2SAI v3
<?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