39    public static function create(
int $npcActorUniqueId, 
int $actionType, 
string $dialogue, 
string $sceneName, 
string $npcName, 
string $actionJson) : self{
 
   41        $result->npcActorUniqueId = $npcActorUniqueId;
 
   42        $result->actionType = $actionType;
 
   43        $result->dialogue = $dialogue;
 
   44        $result->sceneName = $sceneName;
 
   45        $result->npcName = $npcName;
 
   46        $result->actionJson = $actionJson;
 
 
   63        $this->npcActorUniqueId = LE::readSignedLong($in); 
 
   64        $this->actionType = VarInt::readSignedInt($in);
 
   65        $this->dialogue = CommonTypes::getString($in);
 
   66        $this->sceneName = CommonTypes::getString($in);
 
   67        $this->npcName = CommonTypes::getString($in);
 
   68        $this->actionJson = CommonTypes::getString($in);
 
 
   72        LE::writeSignedLong($out, $this->npcActorUniqueId);
 
   73        VarInt::writeSignedInt($out, $this->actionType);
 
   74        CommonTypes::putString($out, $this->dialogue);
 
   75        CommonTypes::putString($out, $this->sceneName);
 
   76        CommonTypes::putString($out, $this->npcName);
 
   77        CommonTypes::putString($out, $this->actionJson);