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

        return(tile);
    }
示例#2
0
 public TimedProxyTile(ProxyTile tile, float timeOut)
 {
     this.timer = 0;
     this.active = false;
     this.visible = false;
     this.tile = tile;
     this.timeOut = timeOut;
 }
示例#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;
 }