public bool UpdateType(int x, int y) { MapTile mapTile = MapHelper.CreateMapTile(x, y, _tiles[x, y].Light); if (mapTile.Equals(ref _tiles[x, y])) { return(false); } _tiles[x, y] = mapTile; return(true); }
public bool UpdateType(int x, int y) { MapTile mapTile = MapHelper.CreateMapTile(x, y, this._tiles[x, y].Light); if (mapTile.Equals(ref this._tiles.Address(x, y))) { return(false); } this._tiles[x, y] = mapTile; return(true); }
// Token: 0x06000A36 RID: 2614 RVA: 0x003BF024 File Offset: 0x003BD224 public bool UpdateLighting(int x, int y, byte light) { MapTile mapTile = this._tiles[x, y]; MapTile mapTile2 = MapHelper.CreateMapTile(x, y, Math.Max(mapTile.Light, light)); if (mapTile2.Equals(ref mapTile)) { return(false); } this._tiles[x, y] = mapTile2; return(true); }
public bool UpdateLighting(int x, int y, byte light) { MapTile other = _tiles[x, y]; MapTile mapTile = MapHelper.CreateMapTile(x, y, Math.Max(other.Light, light)); if (mapTile.Equals(ref other)) { return(false); } _tiles[x, y] = mapTile; return(true); }
public bool UpdateLighting(int x, int y, byte light) { MapTile tile = this._tiles[x, y]; if (light == (byte)0 && tile.Light == (byte)0) { return(false); } MapTile mapTile = MapHelper.CreateMapTile(x, y, Math.Max(tile.Light, light)); if (mapTile.Equals(ref tile)) { return(false); } this._tiles[x, y] = mapTile; return(true); }