Exemple #1
0
        private static TheBox.Data.Location Convert(Location loc)
        {
            TheBox.Data.Location newLoc = new TheBox.Data.Location();

            newLoc.Name = loc.Name;
            newLoc.Map  = loc.Map;
            newLoc.X    = loc.x;
            newLoc.Y    = loc.y;
            newLoc.Z    = (sbyte)loc.z;

            return(newLoc);
        }
Exemple #2
0
		private static TheBox.Data.Location Convert( Location loc )
		{
			TheBox.Data.Location newLoc = new TheBox.Data.Location();

			newLoc.Name = loc.Name;
			newLoc.Map = loc.Map;
			newLoc.X = loc.x;
			newLoc.Y = loc.y;
			newLoc.Z = (sbyte) loc.z;

			return newLoc;
		}