Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

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
28
29
30
31
32
33
34
35
36
37
38
#include "Headers/Patch.h"
#include "Headers/XMLParser.h"

namespace Divide {

void Patch::addGeometry(const FileData& data)
{
    ModelData.push_back(data);
}

bool Patch::compareData(const PatchData& data)
{
    bool updated = true;
    XML::loadScene(data.sceneName);
    for(vectorImpl<FileData>::iterator _iter = ModelData.begin(); _iter != ModelData.end(); _iter++)
        for(U32 i = 0; i < data.size; i++)
        {
            if(data.name[i] == (*_iter).ItemName) // for each item in the scene
                if((*_iter).version != data.version[i]) // if the version differs
                {
                    if((*_iter).ModelName == data.name[i])
                        (*_iter).ModelName == "nullptr"; //Don't update modelNames

                    updated = false;
                    continue;
                }
                else     ModelData.erase(_iter);
        }
    //After the 2 for's ModelData and VegetationData contain all the geometry that needs patching;
    return updated;
}

const vectorImpl<FileData>& Patch::updateClient()
{
    return ModelData;
}

}; //namespace Divide

Commits for Divide-Framework/trunk/Source Code/Server/Utility/Patch.cpp

Diff revisions: vs.
Revision Author Commited Message
337 Diff Diff IonutCava picture IonutCava Wed 17 Dec, 2014 17:25:16 +0000

[Ionut]
- Replaced all tabs with 4 spaces (some spacing may be off now. no way to check all the files.)
- Moved implementation details for ParamHandler, BoundingBox, BoundingSphere and ProfileTimer to proper .inl and .cpp files. (more to follow)
- Update all forward declared enums with the required storage type (as requested by the C++11 standard)

334 IonutCava picture IonutCava Wed 10 Dec, 2014 17:21:22 +0000

[Ionut]
- Reorganized the Hardware project and renamed to "Platform"
- Reorganized the Server project