Esempio n. 1
0
    public static PropSdo[] ConvertPropsForSaving(Prop[,] props)
    {
        var height = props.GetLength(0);
        var width  = props.GetLength(1);

        var propSdos = new PropSdo[height, width];

        for (var row = 0; row < height; row++)
        {
            for (var column = 0; column < width; column++)
            {
                var prop = props[row, column];

                propSdos[row, column] = ConvertPropForSaving(prop);
            }
        }

        return(GlobalHelper.Convert2dArrayTo1dArray(propSdos));
    }
Esempio n. 2
0
 public static char[] ConvertBlueprintForSaving(char[,] blueprint)
 {
     return(GlobalHelper.Convert2dArrayTo1dArray(blueprint));
 }