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); }
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; }