Skip to content

Troposphir/AtmoSerialize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#AtmoSerialize

A library to load and save Atmosphir .atmo files. Features type-safe map item properties.

##Examples

using (var stream = File.OpenRead("draft.atmo")) {
	var map = AtmoConvert.Deserialize(stream);
	Console.WriteLine(map.First().ResourceName);
}

using (var stream = File.OpenWrite("out.atmo")) {
	var map = new Map(5);
	var item = new Item("mi_flag_start") {
        Position = Vector.Zero,
        Rotation = Vector.Zero,
        Scale = 1f
    };
	map.Add(item);

	AtmoConvert.Serialize(stream, map, true); //boolean for compression
}

Asynchronous versions of AtmoConvert.Serialize and AtmoConvert.Deserialize are also available.

About

Library to read and write .atmo files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages