Mercurial > repos > IBDev-IBBoard.WarFoundry.API
view api/Factories/DummyWarFoundryFactory.cs @ 312:3854c26073c4
Re #253: Allow multiple data files in a single zip
* Rebuild file loading to start to allow multiple files in a native file
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 26 Feb 2011 20:15:12 +0000 |
parents | 52985d48b263 |
children | f00a57369aaa |
line wrap: on
line source
// This file (DummyWarFoundryFactory.cs) is a part of the IBBoard.WarFoundry.API project and is copyright 2010 IBBoard // // The file and the library/program it is in are licensed and distributed, without warranty, under the GNU Affero GPL license, either version 3 of the License or (at your option) any later version. Please see COPYING for more information and the full license. using IBBoard.WarFoundry.API.Factories; using IBBoard.WarFoundry.API.Objects; using System.IO; using System.Collections.Generic; namespace IBBoard.WarFoundry.API.Factories { ///<summary> ///A dummy factory for use with <see cref="WarFoundryStagedLoadingObject"/>s that implements the bare minimum of the methods but won't load anything ///</summary> public class DummyWarFoundryFactory : IWarFoundryFactory { public DummyWarFoundryFactory() { //Public constructor } public void CompleteLoading(IWarFoundryStagedLoadObject obj) { obj.SetAsFullyLoaded(); } public bool CanHandleFileFormat(FileInfo file) { return false; } public bool CanHandleFileAsRace(FileInfo file) { return false; } public bool CanHandleFileAsGameSystem(FileInfo file) { return false; } public bool CanHandleFileAsArmy(FileInfo file) { return false; } public ICollection<IWarFoundryObject> CreateObjectsFromFile(FileInfo file) { return new List<IWarFoundryObject>(); } } }