コード例 #1
0
ファイル: REFRRecord.cpp プロジェクト: Dienes/CBash
int32_t REFRRecord::WriteRecord(FileWriter &writer)
    {
    WRITE(EDID);
    WRITE(NAME);
    WRITE(XEZN);
    WRITE(XRGD);
    WRITE(XRGB);
    Patrol.Write(writer);
    WRITE(XLCM);
    Ownership.Write(writer);
    WRITE(XCNT);
    WRITE(XRDS);
    WRITE(XHLP);
    WRITE(XRAD);
    WRITE(XCHG);
    WRITE(XDCR);
    WRITE(XLKR);
    WRITE(XCLP);
    WRITE(RCLR);
    ActivateParents.Write(writer);
    WRITE(XATO);
    WRITE(XESP);
    WRITE(XEMI);
    WRITE(XMBR);
    WRITE(XPRM);
    WRITE(XTRI);
    WRITE(XMBO);
    WRITE(XTEL);
    MapData.Write(writer);
    AudioData.Write(writer);
    WRITE(XSRF);
    WRITE(XSRD);
    WRITE(XTRG);
    WRITE(XRDO);
    WRITE(XLOC);
    Ammo.Write(writer);
    WRITE(XPWR);
    WRITE(XLTW);
    WRITE(XACT);
    WRITE(XNDP);
    WRITE(XPOD);
    WRITE(XPTL);
    WRITE(XSED);
    Room.Write(writer);
    WRITE(XOCP);
    WRITE(XORD);
    WRITE(XLOD);
    if(IsOpenByDefault())
        WRITEEMPTY(ONAM);
    if(XIBS.IsLoaded())
        WRITEEMPTY(XIBS);
    if(XMBP.IsLoaded())
        WRITEEMPTY(XMBP);
    WRITE(XSCL);
    WRITE(DATA);
    return -1;
    }
コード例 #2
0
ファイル: REFRRecord.cpp プロジェクト: Ethatron/CBash
void REFRRecord::REFRData::Write(FileWriter &writer)
    {
    WRITE(EDID);
    WRITE(NAME);
    WRITE(XTEL);
    WRITE(XLOC);
    Ownership.Write(writer);
    WRITE(XESP);
    WRITE(XTRG);
    XSED.Write(writer);
    WRITE(XLOD);
    WRITE(XCHG);
    WRITE(XHLT);
    XPCI.Write(writer);
    WRITE(XLCM);
    WRITE(XRTM);
    WRITE(XACT);
    WRITE(XCNT);
    Marker.Write(writer);
    if(IsOpenByDefault())
        WRITEEMPTY(ONAM);
    WRITE(XSCL);
    WRITE(XSOL);
    WRITE(DATA);
    }
コード例 #3
0
ファイル: REFRRecord.cpp プロジェクト: Ethatron/CBash
void REFRRecord::REFRMAPMARKER::Write(FileWriter &writer)
    {
    WRITEEMPTY(XMRK);
    WRITE(FNAM);
    WRITE(FULL);
    WRITE(TNAM);
    }
コード例 #4
0
ファイル: PMISRecord.cpp プロジェクト: Dienes/CBash
int32_t PMISRecord::WriteRecord(FileWriter &writer)
    {
    WRITE(EDID);
    WRITE(NAME);
    WRITE(XEZN);
    WRITE(XRGD);
    WRITE(XRGB);
    Patrol.Write(writer);
    Ownership.Write(writer);
    WRITE(XCNT);
    WRITE(XRDS);
    WRITE(XHLP);
    WRITE(XDCR);
    WRITE(XLKR);
    WRITE(XCLP);
    ActivateParents.Write(writer);
    WRITE(XATO);
    WRITE(XESP);
    WRITE(XEMI);
    WRITE(XMBR);
    WRITE(XPWR);
    if(XIBS.IsLoaded())
        WRITEEMPTY(XIBS);
    WRITE(XSCL);
    WRITE(DATA);
    return -1;
    }
コード例 #5
0
ファイル: ALCHRecord.cpp プロジェクト: Gruftikus/CBash
SINT32 ALCHRecord::WriteRecord(FileWriter &writer)
    {
    WRITE(EDID);
    if(OBME.IsLoaded())
        OBME->WRITE(OBME);
    WRITE(FULL);
    MODL.Write(writer);
    WRITE(ICON);
    WRITE(SCRI);
    WRITE(DATA);
    WRITE(ENIT);
    Effects.Write(writer);
    if(OBME.IsLoaded())
        {
        if(Effects.value.size())
            WRITEEMPTY(EFXX);
        if(OBME->DATX.IsLoaded())
            OBME->WRITE(DATX);
        }
    return -1;
    }