Table of Contents

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

string

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 string

The file to save in.

Exceptions

IOException

A problem occurred while writing the file.

UnauthorizedAccessException

Write access to the file is not permitted.

Update(double)

void Update(double elapsedGameTime)

Parameters

elapsedGameTime double

How much game time in seconds has elapsed since this method was last called.