Example #1
0
        public void Load_3_9_6(FileStream fs)
        {
            Money = false;

            min     = QuestStreamReader.ReadInt(fs);
            max     = QuestStreamReader.ReadInt(fs);
            value   = QuestStreamReader.ReadInt(fs);
            ParType = QuestStreamReader.ReadInt(fs);

            Hidden     = QuestStreamReader.ReadBool(fs);
            ShowIfZero = QuestStreamReader.ReadBool(fs);
            LoLimit    = QuestStreamReader.ReadBool(fs);
            Enabled    = QuestStreamReader.ReadBool(fs);

            ValueOfViewStrings = QuestStreamReader.ReadInt(fs);
            Money = QuestStreamReader.ReadBool(fs);

            Name = QuestStreamReader.ReadTextField(fs);

            ViewFormatStrings = new ParameterViewString[10];
            for (var i = 0; i < ValueOfViewStrings; ++i)
            {
                ViewFormatStrings[i].Load(fs);
            }

            CriticalMessage = QuestStreamReader.ReadTextField(fs);

            AltStartValues.Load(fs);
            AltDiapStartValues.CopyDataFrom(AltStartValues);
            AltStartValues.Clear();
        }
Example #2
0
        public void Clear()
        {
            bitmask                = 0;
            min                    = 0;
            max                    = 1;
            delta                  = 0;
            ParameterViewAction    = StayAsIs;
            CriticalMessage        = ""; //;'Сообщение достижения критического значения параметром ';
            CriticalMessageVisible = false;
            DeltaPercentFlag       = false;
            DeltaApprFlag          = false;
            DeltaExprFlag          = false;

            ValuesGate    = new QuestValuesList();
            ModZeroesGate = new QuestValuesList();

            ValuesGate.Clear();
            ModZeroesGate.Clear();

            Expression = "";
        }