Mercurial > repos > snowblizz-super-API-ideas
annotate api/Objects/IWarFoundryStagedLoadObject.cs @ 8:613bc5eaac59
Re #9 - Make WarFoundry loading granular
* Remove specific staged loading classes
* Rework category loading for GameSystem and Race to make it use AddCategory(Category) method
* Promote staged loading from Native Factory to all Factories level
* Refactor XML Factory to use smaller methods
Also removed some commented code that isn't used any more
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 04 Jan 2009 19:24:13 +0000 |
parents | 520818033bb6 |
children | 306558904c2a |
rev | line source |
---|---|
0 | 1 using System; |
2 using ICSharpCode.SharpZipLib.Zip; | |
3 using IBBoard.WarFoundry.API.Factories; | |
4 | |
5 namespace IBBoard.WarFoundry.API.Objects | |
6 { | |
7 public interface IWarFoundryStagedLoadObject : IWarFoundryObject | |
8 { | |
9 /// <summary> | |
10 /// Checks whether the object has been fully loaded or whether only the first stage of loading has been performed. | |
11 /// If the object is not fully loaded then the method must finish loading the object. | |
12 /// </summary> | |
13 void EnsureFullyLoaded(); | |
14 | |
15 /// <value> | |
16 /// Gets the <code>AbstractNativeWarFoundryFactory</code> that created the object. | |
17 /// </value> | |
8
613bc5eaac59
Re #9 - Make WarFoundry loading granular
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
18 IWarFoundryFactory Factory { get; } |
0 | 19 |
20 /// <value> | |
21 /// Returns <code>true</code> if the object has been fully loaded with all data, else returns <code>false</code> | |
22 /// </value> | |
23 bool IsFullyLoaded { get; } | |
8
613bc5eaac59
Re #9 - Make WarFoundry loading granular
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
24 |
613bc5eaac59
Re #9 - Make WarFoundry loading granular
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
25 /// <summary> |
613bc5eaac59
Re #9 - Make WarFoundry loading granular
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
26 /// Marks the object as fully loaded so that no more load checking is required. |
613bc5eaac59
Re #9 - Make WarFoundry loading granular
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
27 /// </summary> |
613bc5eaac59
Re #9 - Make WarFoundry loading granular
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
28 void SetAsFullyLoaded(); |
0 | 29 } |
30 } |