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


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

void TexoImporter::End()
{
    producer.End();
}

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);
        }
    }
}