コード例 #1
0
ファイル: Animator.cs プロジェクト: dgulyas/sand
        public static JourneyAnimator FromVecList(string vecList, int maxX, int maxY, int depth, Point currentPosition)
        {
            var path = Path.FromVecList(vecList, depth, maxX, maxY, true);

            path.Offset = new Point {
                X = -currentPosition.X, Y = -currentPosition.Y, Height = -currentPosition.Height
            };
            var jor = new Journey(new Point {
                X = 0, Y = 0, Height = 0
            });

            jor.AddPath(path);

            return(new JourneyAnimator(jor));
        }