filesystemfactory.cpp

来自「赫赫大名的 OGRE 游戏引擎」· C++ 代码 · 共 33 行

CPP
33
字号
#include "FileSystemFactory.h"
#include "FileSystem.h"

namespace Ogre {

    FileSystemFactory::~FileSystemFactory()
    {
    }

    //-----------------------------------------------------------------------
    String FileSystemFactory::getArchiveType(void) const
    {
        return "FileSystem";
    }

    //-----------------------------------------------------------------------
    ArchiveEx* FileSystemFactory::createArchive(const String& name)
    {
        return new FileSystem(name);
    }

    String FileSystemFactory::getType() const
    {
        return "FileSystem";
    }

    ArchiveEx *FileSystemFactory::createObj( const String& name)
    {
        return new FileSystem(name);
    }

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?