public DataToUnlockingObjects(CharacteristicsHero characteristicsHero)
 {
     UnlockingObjects = new string[15];
     for (int index = 0; index < characteristicsHero.SlotsDoorUnlockingObjects.Count; index++)
     {
         UnlockingObjects[index] = characteristicsHero.SlotsDoorUnlockingObjects[index].name;
     }
 }
 public DataToThingsThatWereUsed(CharacteristicsHero characteristicsHero)
 {
     TTWU = new string[15];
     for (int index = 0; index < characteristicsHero.SlotForThingsThatWereUsed.Count; index++)
     {
         TTWU[index] = characteristicsHero.SlotForThingsThatWereUsed[index].name;
     }
 }
예제 #3
0
 public InfoAboutHeroes(CharacteristicsHero Characteristics)
 {
     InformationHero    = new string[4];
     InformationHero[0] = Characteristics.Name;
     InformationHero[1] = Characteristics.Race;
     InformationHero[2] = Characteristics.StoryClass;
     InformationHero[3] = Characteristics.Class;
 }
    public static void SaveDataToInventoryAltar(CharacteristicsHero characteristicsHero)
    {
        BinaryFormatter      bf     = new BinaryFormatter();
        FileStream           stream = new FileStream(Application.dataPath + "/data/InvAL.sav", FileMode.Create);
        DataToInventoryAltar data   = new DataToInventoryAltar(characteristicsHero);

        bf.Serialize(stream, data);
        stream.Close();
    }
    public static void SaveTTWU(CharacteristicsHero characteristicsHero)
    {
        BinaryFormatter          bf     = new BinaryFormatter();
        FileStream               stream = new FileStream(Application.dataPath + "/data/TTWU.sav", FileMode.Create);
        DataToThingsThatWereUsed data   = new DataToThingsThatWereUsed(characteristicsHero);

        bf.Serialize(stream, data);
        stream.Close();
    }
    public static void SaveUnlockingObjects(CharacteristicsHero characteristicsHero)
    {
        BinaryFormatter        bf     = new BinaryFormatter();
        FileStream             stream = new FileStream(Application.dataPath + "/data/InvUO.sav", FileMode.Create);
        DataToUnlockingObjects data   = new DataToUnlockingObjects(characteristicsHero);

        bf.Serialize(stream, data);
        stream.Close();
    }
예제 #7
0
    public static void SaveIndexForUO(CharacteristicsHero characteristicsHero)
    {
        BinaryFormatter bf     = new BinaryFormatter();
        FileStream      stream = new FileStream(Application.dataPath + "/data/ii.sav", FileMode.Create);
        DataIndexForUO  data   = new DataIndexForUO(characteristicsHero);

        bf.Serialize(stream, data);
        stream.Close();
    }
예제 #8
0
    public static void SaveMaximumValuesOfTheHero(CharacteristicsHero Characteristics)
    {
        BinaryFormatter        bf     = new BinaryFormatter();
        FileStream             stream = new FileStream(Application.dataPath + "/data/MaxValue.sav", FileMode.Create);
        MaximumValuesOfTheHero data   = new MaximumValuesOfTheHero(Characteristics);

        bf.Serialize(stream, data);
        stream.Close();
    }
예제 #9
0
    public static void SaveInfoAboutHero(CharacteristicsHero Characteristics)
    {
        BinaryFormatter bf     = new BinaryFormatter();
        FileStream      stream = new FileStream(Application.dataPath + "/data/InformationHero.sav", FileMode.Create);
        InfoAboutHeroes data   = new InfoAboutHeroes(Characteristics);

        bf.Serialize(stream, data);
        stream.Close();
    }
예제 #10
0
 public CurrentValuesOfTheHero(CharacteristicsHero Characteristics)
 {
     CurrentValuesHero    = new float[8];
     CurrentValuesHero[0] = Characteristics.CurrentHealth;
     CurrentValuesHero[1] = Characteristics.CurrentHead;
     CurrentValuesHero[2] = Characteristics.CurrentBody;
     CurrentValuesHero[3] = Characteristics.CurrentLHand;
     CurrentValuesHero[4] = Characteristics.CurrentRHand;
     CurrentValuesHero[5] = Characteristics.CurrentLLeg;
     CurrentValuesHero[6] = Characteristics.CurrentRLeg;
     CurrentValuesHero[7] = Characteristics.PotionX;
 }
예제 #11
0
 public MaximumValuesOfTheHero(CharacteristicsHero Characteristics)
 {
     MaxValuesHero    = new float[9];
     MaxValuesHero[0] = Characteristics.FullHealth;
     MaxValuesHero[1] = Characteristics.MaxAttack;
     MaxValuesHero[2] = Characteristics.MinAttack;
     MaxValuesHero[3] = Characteristics.MaxArmor;
     MaxValuesHero[4] = Characteristics.MinArmor;
     MaxValuesHero[5] = Characteristics.MaxAbility;
     MaxValuesHero[6] = Characteristics.MinAbility;
     MaxValuesHero[7] = Characteristics.Block;
     MaxValuesHero[8] = Characteristics.Regen;
 }
 public DataToInventoryAltar(CharacteristicsHero characteristicsHero)
 {
     Altar    = new string[2];
     Altar[0] = characteristicsHero.SlotsActivatedAltars[0].name;
     Altar[1] = characteristicsHero.SlotsActivatedAltars[1].name;
 }
예제 #13
0
 public DataIndexForUO(CharacteristicsHero characteristicsHero)
 {
     indexForUO    = new int[1];
     indexForUO[0] = characteristicsHero.IndexForUO;
 }