A lazy tile is only loaded whe the player sees it.
Inheritance: ITile
Beispiel #1
0
    public ITile CreateTile(Vec2 point)
    {
        ProxyTile      proxyTile = new ProxyTile(server, point);
        TimedProxyTile tile      = new TimedProxyTile(proxyTile, timeOut);

        return(tile);
    }
Beispiel #2
0
 public TimedProxyTile(ProxyTile tile, float timeOut)
 {
     this.timer = 0;
     this.active = false;
     this.visible = false;
     this.tile = tile;
     this.timeOut = timeOut;
 }
Beispiel #3
0
 public TimedProxyTile(ProxyTile tile, float timeOut)
 {
     this.timer   = 0;
     this.active  = false;
     this.visible = false;
     this.tile    = tile;
     this.timeOut = timeOut;
 }
 public ITile CreateTile(Vec2 point)
 {
     ProxyTile proxyTile = new ProxyTile (server, point);
     TimedProxyTile tile = new TimedProxyTile (proxyTile, timeOut);
     return tile;
 }