public override void Draw(GameObject obj, DrawingSurface ds, bool shadows = true) { if (obj == null || tsEntry == null) { return; } var tmpFile = tsEntry.GetTmpFile(obj as MapTile); if (tmpFile != null) { TmpRenderer.Draw((MapTile)obj, tmpFile, ds); } // todo: tile shadows }
public TmpFile.TmpImage GetTileImage(MapTile t) { var tmp = TsEntry?.GetTmpFile(t); if (tmp == null || tmp.Images.Count == 0) { return(null); } if (tmp.Images.Count > t.SubTile) { return(tmp.Images[t.SubTile]); } else { return(tmp.Images[0]); } }