summaryrefslogtreecommitdiff
path: root/src/importer.cpp
blob: 73f23e6c29d677b844d059cfd623f8223b6b4eb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "importer.hpp"


TexoImporter::TexoImporter(TexoProducer &producer): producer(producer)
{}

void TexoImporter::Put(const ScriptVariable &str)
{
    const int len = str.Length();
    for (int i = 0; i < len; ++i) {
        Put(str[i]);
    }
}

void TexoImporter::Put(FILE *file)
{
    if (file) {
        for (int c = fgetc(file); c != EOF; c = fgetc(file)) {
            Put(c);
        }
    }
}