public Gene(FileStream file) { file.Seek(4, SeekOrigin.Current); var geneBytes = new byte[7]; file.Read(geneBytes, 0, 7); Type = (GeneType)((16 * geneBytes[0]) + geneBytes[1]); ID = geneBytes[2]; MutationDuplicate = geneBytes[3]; ActivationStage = (LifeStage)geneBytes[4]; Characteristics = (GeneCharacteristics)geneBytes[5]; if (!Characteristics.HasFlag(GeneCharacteristics.Male) && !Characteristics.HasFlag(GeneCharacteristics.Female)) { Characteristics |= GeneCharacteristics.Unisex; } MutationChance = geneBytes[6]; }