- Main Page
- Classes
- Files
- Directories
- Related Pages

- Class List
- Class Hierarchy
- Class Members

# KrTextDataResource Class Reference

A data resource stores user data in the dat file. More...

`#include <dataresource.h>`

Inheritance diagram for KrTextDataResource:

List of all members.

## Public Member Functions
virtual U32 | Type ()
| The type of the resource. ( ex, KYRATAG_SPRITE ).
virtual const std::string & | TypeName ()
| The name of the type. ( ex, "Sprite" ).
virtual KrTextDataResource * | ToTextDataResource ()
| Return a pointer if this is a text data resource.
const char * | Text ()
| Get the text as one long null terminated, newline separated char string.
void | Text (std::vector< std::string > *strings)
| Get the text as a group of null terminated strings.

## Detailed Description

A data resource stores user data in the dat file.

Kyra does not use or interact with these resources.

When text is loaded into the resource, it will be stored as one long newline seperated null terminated string. (The newline termination is not effected by encoding or reading OS).

IMPORTANT: This is unrelated to the KrFontResource, which is used to display KrTextBox's. This is a collection of user defined text data.

See also class KrBinaryDataResource.

See the HTML docs for an example of how to encode user resources.

The documentation for this class was generated from the following file:

- dataresource.h