Exemplo n.º 1
0
        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
        }
Exemplo n.º 2
0
        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)
        }
Exemplo n.º 3
0
        public override Rectangle GetBounds(GameObject obj)
        {
            var tile = (MapTile)obj;

            return(TmpRenderer.GetBounds(tile, tsEntry.GetTmpFile(tile)));
        }