예제 #1
0
        public static SimGroup MovingPlatform(string from, string to, string Rot, string Scale, string interior, int index, string name, bool doesReturn = true, string time = "5000", string smoothing = "Linear")
        {
            var platform = new PathedInterior(interior, index, Vector.Zero, new AngAxis(Rot), new Vector(Scale))
            {
                objname = name + "MP"
            };
            var    fromMarker   = new Marker(time, "0", smoothing, new Vector(from), AngAxis.Identity, Vector.One);
            var    toMarker     = new Marker(time, "1", smoothing, new Vector(to), AngAxis.Identity, Vector.One);
            Marker returnMarker = null;

            if (doesReturn)
            {
                returnMarker = new Marker(time, "2", smoothing, new Vector(from), AngAxis.Identity, Vector.One);
            }
            var Path = new Path();

            Path.Add(fromMarker);
            Path.Add(toMarker);
            if (doesReturn)
            {
                Path.Add(returnMarker);
            }
            var sg = new SimGroup()
            {
                objname = name
            };

            sg.Add(Path);
            sg.Add(platform);
            return(sg);
        }
예제 #2
0
        public static SimGroup MissionGroupNormal(string name = "A Custom Level", string artist = "Your name here", string desc = "Simply indescribable", string starthelptext = "No starthelptext", string platinumTime = "0", string ultimateTime = "0", string awesomeTime = "0", string parTime = "0")
        {
            var missiongroupsg = new SimGroup()
            {
                objname = "MissionGroup"
            };

            missiongroupsg.Add(MissionInfo.Normal(name, artist, desc, starthelptext, platinumTime, ultimateTime, awesomeTime, parTime));
            missiongroupsg.Add(new Sky());
            missiongroupsg.Add(new Sun());
            return(missiongroupsg);
        }
예제 #3
0
        public static SimGroup MovingPlatform(string interior, int index, List <Marker> markers)
        {
            var platform = new PathedInterior(interior, index, Vector.Zero, AngAxis.Identity, Vector.One);
            var simgroup = new SimGroup();
            var path     = new Path();

            foreach (var marker in markers)
            {
                path.Add(marker);
            }
            simgroup.Add(path);
            simgroup.Add(platform);
            return(simgroup);
        }