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 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) { var renderer = new TmpRenderer(_config); renderer.Draw((MapTile)obj, tmpFile, ds); if (TsEntry.AnimationDrawable != null && TsEntry.AnimationSubtile == (obj as MapTile).SubTile) { TsEntry.AnimationDrawable.Draw(obj, ds, false); } } // todo: tile shadows (TS) }
public override Rectangle GetBounds(GameObject obj) { var tile = (MapTile)obj; return(TmpRenderer.GetBounds(tile, tsEntry.GetTmpFile(tile))); }