Interface IUniverse
- Namespace
- AlphaFramework.World
- Assembly
- AlphaFramework.World.dll
A common base for all UniverseBase<TCoordinates> types.
public interface IUniverse
- Extension Methods
Properties
SourceFile
The map file this world was loaded from.
[Browsable(false)]
string SourceFile { get; set; }
Property Value
Remarks
Is not serialized/stored, is set by whatever method loads the universe.
Methods
Save()
Overwrites the map file this UniverseBase<TCoordinates> was loaded from with the changed data.
void Save()
Exceptions
- IOException
A problem occurred while writing the file.
- UnauthorizedAccessException
Write access to the file is not permitted.
Save(string)
Saves this UniverseBase<TCoordinates> in a compressed XML file (map file).
void Save(string path)
Parameters
path
stringThe file to save in.
Exceptions
- IOException
A problem occurred while writing the file.
- UnauthorizedAccessException
Write access to the file is not permitted.
Update(double)
Updates the UniverseBase<TCoordinates> and all Positionable<TCoordinates>s in it.
void Update(double elapsedGameTime)
Parameters
elapsedGameTime
doubleHow much game time in seconds has elapsed since this method was last called.