C# Class ProxyTile, tilemap

A lazy tile is only loaded whe the player sees it.
Inheritance: ITile
显示文件 Open project: stalexwang/tilemap Class Usage Examples

Public Methods

Method Description
GetData ( ) : int
GetPoint ( ) : Vec2,
ProxyTile ( ITileServer server, Vec2, point ) : UnityEngine
Refresh ( ) : void

Refresh the tile data.

SetData ( int data ) : void
Subscribe ( IObserver, ob ) : void
Update ( ) : void

Method Details

GetData() public method

public GetData ( ) : int
return int

GetPoint() public method

public GetPoint ( ) : Vec2,
return Vec2,

ProxyTile() public method

public ProxyTile ( ITileServer server, Vec2, point ) : UnityEngine
server ITileServer
point Vec2,
return UnityEngine

Refresh() public method

Refresh the tile data.
public Refresh ( ) : void
return void

SetData() public method

public SetData ( int data ) : void
data int
return void

Subscribe() public method

public Subscribe ( IObserver, ob ) : void
ob IObserver,
return void

Update() public method

public Update ( ) : void
return void