public override bool LoadSingleItem()
{
Token command = m_serializer.ReadTextToken(this);
if (command != null)
{
CommandBase cb = CommandBase.FindCommand(command.Text);
if (cb != null)
{
command.Type = TokenType.Command;
cb.Index = command.Offset;
cb.LoadCommand(m_serializer);
Commands.Add(cb);
Children.Add(cb);
//cb.Length = m_serializer.Position - cb.Index;
return cb.RequireNewLine;
}
else
{
m_serializer.Warn(string.Format("Command '{0}' not found.", command.Text), this);
command.Type = TokenType.Error;
}
}
return true;
}