Class GrassOnlyDummyMapLoader
Class that represents a dummy map loader that yields all grass tiles.
Inheritance
Implements
Inherited Members
Namespace: Fibula.Map.GrassOnly
Assembly: Fibula.Map.GrassOnly.dll
Syntax
public class GrassOnlyDummyMapLoader : IMapLoader
Constructors
| Improve this Doc View SourceGrassOnlyDummyMapLoader(IItemFactory)
Initializes a new instance of the Grass
Declaration
public GrassOnlyDummyMapLoader(IItemFactory itemFactory)
Parameters
Type | Name | Description |
---|---|---|
IItem |
itemFactory | A reference to the item factory. |
Properties
| Improve this Doc View SourceItemFactory
Gets the item factory instance.
Declaration
public IItemFactory ItemFactory { get; }
Property Value
Type | Description |
---|---|
IItem |
PercentageComplete
Gets the percentage completed loading the map [0, 100].
Declaration
public byte PercentageComplete { get; }
Property Value
Type | Description |
---|---|
System. |
Methods
| Improve this Doc View SourceHasLoaded(Int32, Int32, SByte)
Gets a value indicating whether this loader has previously loaded the given coordinates.
Declaration
public bool HasLoaded(int x, int y, sbyte z)
Parameters
Type | Name | Description |
---|---|---|
System. |
x | The X coordinate. |
System. |
y | The Y coordinate. |
System. |
z | The Z coordinate. |
Returns
Type | Description |
---|---|
System. |
True if the loader has previously loaded the given coordinates, false otherwise. |
Load(Int32, Int32, Int32, Int32, SByte, SByte)
Attempts to load all tiles within a 3 dimensional coordinates window.
Declaration
public IEnumerable<(Location Location, ITile Tile)> Load(int fromX, int toX, int fromY, int toY, sbyte fromZ, sbyte toZ)
Parameters
Type | Name | Description |
---|---|---|
System. |
fromX | The start X coordinate for the load window. |
System. |
toX | The end X coordinate for the load window. |
System. |
fromY | The start Y coordinate for the load window. |
System. |
toY | The end Y coordinate for the load window. |
System. |
fromZ | The start Z coordinate for the load window. |
System. |
toZ | The end Z coordinate for the load window. |
Returns
Type | Description |
---|---|
System. |
A collection of ordered pairs containing the Location and its corresponding ITile. |
Events
| Improve this Doc View SourceWindowLoaded
Event not in use for this loader.
Declaration
public event WindowLoaded WindowLoaded
Event Type
Type | Description |
---|---|
Window |