Interface IUniverse
- Namespace
- AlphaFramework.World
- Assembly
- AlphaFramework.World.dll
A game world (but not a running game). Equivalent to the content of a map file.
public interface IUniverse
- Extension Methods
Properties
GameTime
Total elapsed game time in seconds.
double GameTime { get; set; }
Property Value
SourceFile
The map file this world was loaded from.
string? SourceFile { get; set; }
Property Value
Remarks
Is not serialized/stored, is set by whatever method loads the universe.
Methods
Save(string)
Saves this CoordinateUniverse<TCoordinates> in a 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 universe.
void Update(double elapsedGameTime)
Parameters
elapsedGameTime
doubleHow much game time in seconds has elapsed since this method was last called.