historical/toontown-classic.git/panda/include/virtualFileComposite.I
2024-01-16 11:20:27 -06:00

35 lines
942 B
Text

/**
* PANDA 3D SOFTWARE
* Copyright (c) Carnegie Mellon University. All rights reserved.
*
* All use of this software is subject to the terms of the revised BSD
* license. You should have received a copy of this license along
* with this source code in a file named "LICENSE."
*
* @file virtualFileComposite.I
* @author drose
* @date 2002-08-03
*/
/**
*
*/
INLINE VirtualFileComposite::
VirtualFileComposite(VirtualFileSystem *file_system, const Filename &filename) :
_file_system(file_system),
_filename(filename)
{
}
/**
* Adds one more component to the composite directory. The component should
* be a directory and the file system and filename should match the composite.
*/
INLINE void VirtualFileComposite::
add_component(VirtualFile *file) {
nassertv(file->is_directory());
nassertv(file->get_file_system() == _file_system);
nassertv(file->get_filename() == _filename);
_components.push_back(file);
}