mystring3[2]="Stay up to 6 AM?: Do you wan't to stay up till 6 AM the next morning?";
mystring3[3]=stay_up.ToString();
mystring3[4]="Custom Lighting Transition?: Do you want to have a lighting transition from 2AM to 5:50 AM? Setting this to false will keep the world dark until the player passes out or goes to bed.";
mystring3[5]=lighting_transition.ToString();
mystring3[6]="Warp to collapse position?: True: Stay in the same place. False: Warp back home.";
mystring3[7]=warp.ToString();
// mystring3[8] = "Clean out charges mail?: Get rid of the annoying We charged X gold for your health fees, etc.";
// mystring3[9] = wipe_mail.ToString();
mystring3[8]="Keep Money?: True: Don't be charged for passing out.";
mystring3[9]=protect_money.ToString();
mystring3[10]="Keep stamina when staying up? When the farmer passes out at 6, should their stamina be their stamina before collapsing?";
mystring3[11]=persistant_stamina.ToString();
mystring3[12]="Keep health when staying up? When the farmer passes out at 6, should their health be their health before collapsing?";
mystring3[13]=persistant_health.ToString();
/*
mystring3[17]="Nightly Stamina Value: This is the value of the player's stamina that was saved when the player slept.";
mystring3[18]=nightly_stamina_value.ToString();//this should save the player's stamina upon sleeping.
*/
File.WriteAllLines(mylocation3,mystring3);
}
else
{
// Console.WriteLine("HEY IM SAVING DATA");
//write out the info to a text file at the end of a day.
mystring3[0]="Player: Night Owl Config. Feel free to edit.";
mystring3[2]="Stay up to 6 AM?: Do you wan't to stay up till 6 AM the next morning?";
mystring3[3]=stay_up.ToString();
mystring3[4]="Custom Lighting Transition?: Do you want to have a lighting transition from 2AM to 5:50 AM? Setting this to false will keep the world dark until the player passes out or goes to bed.";
mystring3[5]=lighting_transition.ToString();
mystring3[6]="Warp to collapse position?: True: Stay in the same place. False: Warp back home.";
mystring3[7]=warp.ToString();
// mystring3[8] = "Clean out charges mail?: Get rid of the annoying We charged X gold for your health fees, etc.";
//mystring3[9] = wipe_mail.ToString();
mystring3[8]="Keep Money?: True: Don't be charged for passing out.";
mystring3[9]=protect_money.ToString();
mystring3[10]="Keep stamina when staying up? When the farmer passes out at 6, should their stamina be their stamina before collapsing?";
mystring3[11]=persistant_stamina.ToString();
mystring3[12]="Keep health when staying up? When the farmer passes out at 6, should their health be their health before collapsing?";
mystring3[13]=persistant_health.ToString();
File.WriteAllLines(mylocation3,mystring3);
}
}
voidDataLoader()
{
//loads the data to the variables upon loading the game.