Skip to content

Commit

Permalink
Added: ResourceSystem (stub)
Browse files Browse the repository at this point in the history
  • Loading branch information
danij-deng committed Nov 9, 2013
1 parent c0c753b commit 72ae2cb
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doomsday/client/client.pro
Expand Up @@ -347,6 +347,7 @@ DENG_HEADERS += \
include/resource/pcx.h \
include/resource/r_data.h \
include/resource/rawtexture.h \
include/resource/resourcesystem.h \
include/resource/sprites.h \
include/resource/texture.h \
include/resource/texturemanifest.h \
Expand Down Expand Up @@ -702,6 +703,7 @@ SOURCES += \
src/resource/pcx.cpp \
src/resource/r_data.cpp \
src/resource/rawtexture.cpp \
src/resource/resourcesystem.cpp \
src/resource/sprites.cpp \
src/resource/texture.cpp \
src/resource/texturemanifest.cpp \
Expand Down
39 changes: 39 additions & 0 deletions doomsday/client/include/resource/resourcesystem.h
@@ -0,0 +1,39 @@
/** @file resourcesystem.h Resource subsystem.
*
* @authors Copyright © 2013 Daniel Swanson <danij@dengine.net>
*
* @par License
* GPL: http://www.gnu.org/licenses/gpl.html
*
* <small>This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version. This program is distributed in the hope that it
* will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
* Public License for more details. You should have received a copy of the GNU
* General Public License along with this program; if not, see:
* http://www.gnu.org/licenses</small>
*/

#ifndef DENG_RESOURCESYSTEM_H
#define DENG_RESOURCESYSTEM_H

#include <de/System>

/**
* Logical resources; materials, packages, textures, etc... @ingroup resource
*/
class ResourceSystem : public de::System
{
public:
ResourceSystem();

// System.
void timeChanged(de::Clock const &);

private:
DENG2_PRIVATE(d)
};

#endif // DENG_RESOURCESYSTEM_H
35 changes: 35 additions & 0 deletions doomsday/client/src/resource/resourcesystem.cpp
@@ -0,0 +1,35 @@
/** @file resourcesystem.cpp Resource subsystem.
*
* @authors Copyright © 2013 Daniel Swanson <danij@dengine.net>
*
* @par License
* GPL: http://www.gnu.org/licenses/gpl.html
*
* <small>This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version. This program is distributed in the hope that it
* will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
* Public License for more details. You should have received a copy of the GNU
* General Public License along with this program; if not, see:
* http://www.gnu.org/licenses</small>
*/

#include "resource/resourcesystem.h"

using namespace de;

DENG2_PIMPL(ResourceSystem)
{
Instance(Public *i) : Base(i)
{}
};

ResourceSystem::ResourceSystem() : d(new Instance(this))
{}

void ResourceSystem::timeChanged(Clock const &)
{
// Nothing to do.
}
2 changes: 2 additions & 0 deletions doomsday/server/server.pro
Expand Up @@ -211,6 +211,7 @@ DENG_HEADERS += \
$$SRC/include/resource/patchname.h \
$$SRC/include/resource/r_data.h \
$$SRC/include/resource/rawtexture.h \
$$SRC/include/resource/resourcesystem.h \
$$SRC/include/resource/sprites.h \
$$SRC/include/resource/texture.h \
$$SRC/include/resource/texturemanifest.h \
Expand Down Expand Up @@ -383,6 +384,7 @@ SOURCES += \
$$SRC/src/resource/pcx.cpp \
$$SRC/src/resource/r_data.cpp \
$$SRC/src/resource/rawtexture.cpp \
$$SRC/src/resource/resourcesystem.cpp \
$$SRC/src/resource/sprites.cpp \
$$SRC/src/resource/texture.cpp \
$$SRC/src/resource/texturemanifest.cpp \
Expand Down

0 comments on commit 72ae2cb

Please sign in to comment.