public static List <HousePortal> ConvertToACE(this List <Seg5_HousingPortals.HousingPortal> input)
        {
            var results = new List <HousePortal>();

            foreach (var value in input)
            {
                foreach (var destination in value.Destinations)
                {
                    var result = new HousePortal
                    {
                        HouseId = value.HouseId,

                        ObjCellId = destination.ObjCellID,

                        OriginX = destination.Origin.X,
                        OriginY = destination.Origin.Y,
                        OriginZ = destination.Origin.Z,

                        AnglesW = destination.Angles.W,
                        AnglesX = destination.Angles.X,
                        AnglesY = destination.Angles.Y,
                        AnglesZ = destination.Angles.Z,
                    };

                    results.Add(result);
                }
            }

            return(results);
        }
Example #2
0
        /// <summary>
        /// Default is formed from: input.HouseId.ToString("00000")
        /// </summary>
        public string GetDefaultFileName(HousePortal input)
        {
            string fileName = input.HouseId.ToString("00000");

            fileName  = IllegalInFileName.Replace(fileName, "_");
            fileName += ".sql";

            return(fileName);
        }