C# Class EagerLoadingStrategy, tilemap

Eager loading strategy loads not only visible tiles but also ones that are likely to be visible. It's based on LazyLoadingStrategy, and loads additional tiles according to users' actions.
Inheritance: ITileLoadingStrategy
显示文件 Open project: stalexwang/tilemap Class Usage Examples

Public Methods

Method Description
EagerLoadingStrategy ( ) : System
GetTilesToLoad ( float x, float y, float w, float h, int m, int n ) : ICollection

Private Methods

Method Description
GetPotentialTiles ( Vec2, point, Vector2 normal ) : ICollection

Method Details

EagerLoadingStrategy() public method

public EagerLoadingStrategy ( ) : System
return System

GetTilesToLoad() public method

public GetTilesToLoad ( float x, float y, float w, float h, int m, int n ) : ICollection
x float
y float
w float
h float
m int
n int
return ICollection