private void addNewShip_default() { ShipDataIndividual defaultShip = new ShipDataIndividual(); defaultShip.setShipName(Constants.defaultShipName); defaultShip.setSailPatternSelection(Constants.defaultSelection_SailPattern); defaultShip.setColor_SailPrimary(Constants.defaultColor_SailPrimary); defaultShip.setColor_SailPattern(Constants.defaultColor_SailPattern); defaultShip.setColor_MastAndDeck(Constants.defaultColor_MastAndDeck); defaultShip.setColor_Rails(Constants.defaultColor_Rails); defaultShip.setColor_Hull(Constants.defaultColor_Hull); defaultShip.setCannonSelection(Constants.defaultSelection_cannon); defaultShip.setColor_Cannonball(Constants.defaultColor_Cannonball); addNewShip(defaultShip); }
private ShipDataIndividual createShipDataFromRawData(Color32[] shipColor, byte sailPatternSelection, bool sailIsMirrored_horizontal, bool sailIsMirrored_vertical, byte cannonSelection, string shipName) { ShipDataIndividual newShipData = new ShipDataIndividual(); newShipData.setShipName(shipName); newShipData.setSailPatternSelection(sailPatternSelection); newShipData.setSailIsMirrored(sailIsMirrored_horizontal, sailIsMirrored_vertical); newShipData.setColor_SailPrimary(shipColor[0]); newShipData.setColor_SailPattern(shipColor[1]); newShipData.setColor_MastAndDeck(shipColor[2]); newShipData.setColor_Rails(shipColor[3]); newShipData.setColor_Hull(shipColor[4]); newShipData.setCannonSelection(cannonSelection); newShipData.setColor_Cannonball(shipColor[5]); return(newShipData); }