Table of Contents

Interface IObjectMap

Namespace
RetroEditor.Plugins
Assembly
RetroEditor.dll

Interface for an object map - used by the ObjectMapWidget class

public interface IObjectMap

Properties

FetchObjects

Fetch the objects for the map (they will be rendered in the order they are returned)

IEnumerable<IObject> FetchObjects { get; }

Property Value

IEnumerable<IObject>

Height

Height in pixels of the map

uint Height { get; }

Property Value

uint

ScaleX

X Scale of the objects

float ScaleX { get; }

Property Value

float

ScaleY

Y Scale of the objects

float ScaleY { get; }

Property Value

float

Width

Width in pixels of the map

uint Width { get; }

Property Value

uint

Methods

FetchPalette()

Fetch tile palette for the map

TilePaletteStore FetchPalette()

Returns

TilePaletteStore

Tile palette storage

ObjectDelete(IObject)

Called when an object is deleted, allows the map to remove the object

void ObjectDelete(IObject obj)

Parameters

obj IObject

Object being deleted

ObjectMove(IObject, uint, uint)

Called when an object is moved, allows the map to adjust the object position

void ObjectMove(IObject obj, uint x, uint y)

Parameters

obj IObject

Object being moved

x uint

X position

y uint

Y position