Skip to content

Instantly share code, notes, and snippets.

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