Exemplo n.º 1
0
void kexBinFile::WriteString(const kexStr &val) {
    const char *c = val.c_str();

    for(int i = 0; i < val.Length(); i++) {
        Write8(c[i]);
    }

    Write8(0);
}
Exemplo n.º 2
0
kexStr::kexStr(const kexStr &string) {
    Init();

    if(string.charPtr == NULL)
        return;

    CopyNew(string.charPtr, string.Length());
}
Exemplo n.º 3
0
void kexInputKey::AddAction(byte id, const kexStr &str) {
    AddAction(id, str.c_str());
}
Exemplo n.º 4
0
int kexStr::IndexOf(const kexStr &pattern) const {
    return IndexOf(pattern.c_str());
}
Exemplo n.º 5
0
kexStr kexStr::operator+(const kexStr &str) {
    kexStr out(*this);
    
    return out.Concat(str.c_str());
}
Exemplo n.º 6
0
bool kexStr::Compare(const kexStr &a, const kexStr &b) {
    return Compare(a.c_str(), b.c_str());
}
Exemplo n.º 7
0
bool kexWorldObject::RangeDamage(const kexStr &damageDef,
                                 const float dmgRadius,
                                 const kexVec3 &dmgOrigin) {
    return RangeDamage(damageDef.c_str(), dmgRadius, dmgOrigin);
}