示例#1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (DisplayName.Length != 0)
            {
                hash ^= DisplayName.GetHashCode();
            }
            if (Description.Length != 0)
            {
                hash ^= Description.GetHashCode();
            }
            if (ConstraintDefault != global::Google.Cloud.OrgPolicy.V2.Constraint.Types.ConstraintDefault.Unspecified)
            {
                hash ^= ConstraintDefault.GetHashCode();
            }
            if (constraintTypeCase_ == ConstraintTypeOneofCase.ListConstraint)
            {
                hash ^= ListConstraint.GetHashCode();
            }
            if (constraintTypeCase_ == ConstraintTypeOneofCase.BooleanConstraint)
            {
                hash ^= BooleanConstraint.GetHashCode();
            }
            hash ^= (int)constraintTypeCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
 public virtual void EnsureConstraints()
 {
     if ((mLoadedConstraints == true))
     {
         return;
     }
     mLoadedConstraints                   = true;
     mTask_loyalty_counter                = new Articy.Unity.Constraints.NumberConstraint(-100D, 100D, 0, 0, 0, null);
     mTask_death_target_first             = new Articy.Unity.Constraints.ReferenceSlotConstraint("Entity;", "", "None;", "");
     mTask_death_target_second            = new Articy.Unity.Constraints.ReferenceSlotConstraint("Entity;", "", "None;", "");
     mTask_spare_target_first             = new Articy.Unity.Constraints.ReferenceSlotConstraint("Entity;", "", "None;", "");
     mTask_spare_occupation_selector      = new Articy.Unity.Constraints.EnumConstraint(false, "BySortIndex");
     mTask_daily_profiles                 = new Articy.Unity.Constraints.ReferenceStripConstraint(10000, "Entity;", "", "None;", "template_profile;template_random_profile;");
     mTask_death_occupation_selector      = new Articy.Unity.Constraints.EnumConstraint(false, "BySortIndex");
     mTask_profile_count                  = new Articy.Unity.Constraints.ScriptConstraint("Outcome", "");
     mTask_description_top                = new Articy.Unity.Constraints.TextConstraint(2048, "", null, true, true);
     mTask_death_threshold_younger        = new Articy.Unity.Constraints.NumberConstraint(18D, 2000D, 0, 0, 0, "years ");
     mTask_death_threshold_older          = new Articy.Unity.Constraints.NumberConstraint(18D, 2000D, 0, 0, 0, "years");
     mTask_spare_threshold_younger        = new Articy.Unity.Constraints.NumberConstraint(18D, 2000D, 0, 0, 0, "years");
     mTask_spare_threshold_older          = new Articy.Unity.Constraints.NumberConstraint(18D, 2000D, 0, 0, 0, "years");
     mTask_description_bottom             = new Articy.Unity.Constraints.TextConstraint(2048, "", null, true, true);
     mTask_death_occupation_amount        = new Articy.Unity.Constraints.NumberConstraint(-3.40282346638529E+38D, 3.40282346638529E+38D, 0, 0, 0, null);
     mTask_death_threshold_younger_amount = new Articy.Unity.Constraints.NumberConstraint(-3.40282346638529E+38D, 3.40282346638529E+38D, 0, 0, 0, null);
     mTask_death_threshold_older_amount   = new Articy.Unity.Constraints.NumberConstraint(-3.40282346638529E+38D, 3.40282346638529E+38D, 0, 0, 0, null);
     mTask_spare_occupation_amount        = new Articy.Unity.Constraints.NumberConstraint(-3.40282346638529E+38D, 3.40282346638529E+38D, 0, 0, 0, null);
     mTask_spare_threshold_younger_amount = new Articy.Unity.Constraints.NumberConstraint(-3.40282346638529E+38D, 3.40282346638529E+38D, 0, 0, 0, null);
     mTask_spare_threshold_older_amount   = new Articy.Unity.Constraints.NumberConstraint(-3.40282346638529E+38D, 3.40282346638529E+38D, 0, 0, 0, null);
     mTask_death_count      = new Articy.Unity.Constraints.NumberConstraint(-3.40282346638529E+38D, 3.40282346638529E+38D, 0, 0, 0, null);
     mTask_profile_shuffler = new Articy.Unity.Constraints.BooleanConstraint(false);
 }
 public virtual void EnsureConstraints()
 {
     if ((mLoadedConstraints == true))
     {
         return;
     }
     mLoadedConstraints      = true;
     mInitialDialog          = new Articy.Unity.Constraints.ReferenceSlotConstraint("DialogueFragment;Dialogue;", "", "None;", "");
     mIsStartLocation        = new Articy.Unity.Constraints.BooleanConstraint(false);
     mBackgrounds            = new Articy.Unity.Constraints.ReferenceStripConstraint(10000, "Asset;", "", "None;Image;Video;Audio;Document;Misc;All;", "BackgroundImage;");
     mInitialDialogCondition = new Articy.Unity.Constraints.ScriptConstraint("Condition", "");
 }
 public virtual void EnsureConstraints()
 {
     if ((mLoadedConstraints == true))
     {
         return;
     }
     mLoadedConstraints = true;
     mM_CharID          = new Articy.Unity.Constraints.NumberConstraint(-3.40282346638529E+38, 3.40282346638529E+38, 0, 0, 0, null);
     mM_CharHP          = new Articy.Unity.Constraints.NumberConstraint(0, 100, 0, 0, 0, null);
     mM_CharMP          = new Articy.Unity.Constraints.NumberConstraint(0, 100, 0, 0, 0, "");
     mM_CharOnScreen    = new Articy.Unity.Constraints.BooleanConstraint(false);
     mM_CharIsDead      = new Articy.Unity.Constraints.BooleanConstraint(false);
     mM_CharScript      = new Articy.Unity.Constraints.ScriptConstraint("Condition", "");
     mM_CharMaxHP       = new Articy.Unity.Constraints.NumberConstraint(-3.40282346638529E+38, 3.40282346638529E+38, 0, 0, 0, null);
     mM_CharMaxMP       = new Articy.Unity.Constraints.NumberConstraint(-3.40282346638529E+38, 3.40282346638529E+38, 0, 0, 0, null);
 }
示例#5
0
 public virtual void EnsureConstraints()
 {
     if ((mLoadedConstraints == true))
     {
         return;
     }
     mLoadedConstraints              = true;
     mProfile_name                   = new Articy.Unity.Constraints.TextConstraint(2048, "", null, true, false);
     mProfile_age_value              = new Articy.Unity.Constraints.TextConstraint(2048, "", null, true, false);
     mProfile_job                    = new Articy.Unity.Constraints.TextConstraint(2048, "", null, true, false);
     mProfile_bio                    = new Articy.Unity.Constraints.TextConstraint(2048, "", null, true, true);
     mProfile_is_enabled             = new Articy.Unity.Constraints.BooleanConstraint(true);
     mProfile_marked_for_death       = new Articy.Unity.Constraints.BooleanConstraint(false);
     mProfile_occupation_selector    = new Articy.Unity.Constraints.EnumConstraint(false, "BySortIndex");
     mProfile_appearance_news_first  = new Articy.Unity.Constraints.TextConstraint(2048, "", null, true, false);
     mProfile_appearance_news_second = new Articy.Unity.Constraints.TextConstraint(2048, "", null, true, false);
 }
示例#6
0
        public void MergeFrom(Constraint other)
        {
            if (other == null)
            {
                return;
            }
            if (other.Name.Length != 0)
            {
                Name = other.Name;
            }
            if (other.DisplayName.Length != 0)
            {
                DisplayName = other.DisplayName;
            }
            if (other.Description.Length != 0)
            {
                Description = other.Description;
            }
            if (other.ConstraintDefault != global::Google.Cloud.OrgPolicy.V2.Constraint.Types.ConstraintDefault.Unspecified)
            {
                ConstraintDefault = other.ConstraintDefault;
            }
            switch (other.ConstraintTypeCase)
            {
            case ConstraintTypeOneofCase.ListConstraint:
                if (ListConstraint == null)
                {
                    ListConstraint = new global::Google.Cloud.OrgPolicy.V2.Constraint.Types.ListConstraint();
                }
                ListConstraint.MergeFrom(other.ListConstraint);
                break;

            case ConstraintTypeOneofCase.BooleanConstraint:
                if (BooleanConstraint == null)
                {
                    BooleanConstraint = new global::Google.Cloud.OrgPolicy.V2.Constraint.Types.BooleanConstraint();
                }
                BooleanConstraint.MergeFrom(other.BooleanConstraint);
                break;
            }

            _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
        }
示例#7
0
 public virtual void EnsureConstraints()
 {
     if ((mLoadedConstraints == true))
     {
         return;
     }
     mLoadedConstraints  = true;
     mMediumTextValue_02 = new Articy.Unity.Constraints.TextConstraint(2048, "", null, false, true);
     mMediumTextValue_03 = new Articy.Unity.Constraints.TextConstraint(2048, "", null, false, true);
     mMediumTextValue_04 = new Articy.Unity.Constraints.TextConstraint(2048, "", null, false, true);
     mMediumTextValue_05 = new Articy.Unity.Constraints.TextConstraint(2048, "", null, false, true);
     mNumberValue        = new Articy.Unity.Constraints.NumberConstraint(-3.40282346638529E+38, 3.40282346638529E+38, 0, 0, 0, null);
     mBooleanValue       = new Articy.Unity.Constraints.BooleanConstraint(false);
     mNumberValue_02     = new Articy.Unity.Constraints.NumberConstraint(-3.40282346638529E+38, 3.40282346638529E+38, 0, 0, 0, null);
     mMediumTextValue    = new Articy.Unity.Constraints.TextConstraint(2048, "", null, false, true);
     mMediumTextValue_06 = new Articy.Unity.Constraints.TextConstraint(2048, "", null, false, true);
     mBooleanValue_02    = new Articy.Unity.Constraints.BooleanConstraint(false);
     mBooleanValue_03    = new Articy.Unity.Constraints.BooleanConstraint(false);
     mNumberValue_03     = new Articy.Unity.Constraints.NumberConstraint(-3.40282346638529E+38, 3.40282346638529E+38, 0, 0, 0, null);
 }
示例#8
0
 public virtual void EnsureConstraints()
 {
     if ((mLoadedConstraints == true))
     {
         return;
     }
     mLoadedConstraints                     = true;
     mProfile_generate_occupation           = new Articy.Unity.Constraints.EnumConstraint(false, "BySortIndex");
     mProfile_generate_older_than           = new Articy.Unity.Constraints.NumberConstraint(18D, 2000D, 0, 0, 0, "years");
     mProfile_generate_younger_than         = new Articy.Unity.Constraints.NumberConstraint(18D, 2000D, 0, 0, 0, "years");
     mProfile_generate_ecology_value_min    = new Articy.Unity.Constraints.NumberConstraint(-100D, 100D, 0, 0, 0, null);
     mProfile_generate_peace_value_min      = new Articy.Unity.Constraints.NumberConstraint(-100D, 100D, 0, 0, 0, null);
     mProfile_generate_healthcare_value_min = new Articy.Unity.Constraints.NumberConstraint(-100D, 100D, 0, 0, 0, null);
     mProfile_generate_prosperity_value_min = new Articy.Unity.Constraints.NumberConstraint(-100D, 100D, 0, 0, 0, null);
     mProfile_generate_any_random           = new Articy.Unity.Constraints.BooleanConstraint(false);
     mProfile_generate_ecology_value_max    = new Articy.Unity.Constraints.NumberConstraint(-100D, 100D, 0, 0, 0, null);
     mProfile_generate_peace_value_max      = new Articy.Unity.Constraints.NumberConstraint(-100D, 100D, 0, 0, 0, null);
     mProfile_generate_healthcare_value_max = new Articy.Unity.Constraints.NumberConstraint(-100D, 100D, 0, 0, 0, null);
     mProfile_generate_prosperity_value_max = new Articy.Unity.Constraints.NumberConstraint(-100D, 100D, 0, 0, 0, null);
     mProfile_generate_spare_death_both     = new Articy.Unity.Constraints.EnumConstraint(false, "BySortIndex");
 }
 public virtual void EnsureConstraints()
 {
     if ((mLoadedConstraints == true))
     {
         return;
     }
     mLoadedConstraints = true;
     mId    = new Articy.Unity.Constraints.TextConstraint(2048, "", null, false, false);
     mImage = new Articy.Unity.Constraints.ReferenceSlotConstraint("FlowFragment;Dialogue;DialogueFragment;Condition;Instruction;Hub;Jump;Entity;Loca" +
                                                                   "tion;Link;Path;Spot;Zone;LocationText;LocationImage;Document;TextObject;Journey;" +
                                                                   "Asset;", "", "None;Image;Video;Audio;Document;Misc;All;", "");
     mSfx = new Articy.Unity.Constraints.ReferenceSlotConstraint("FlowFragment;Dialogue;DialogueFragment;Condition;Instruction;Hub;Jump;Entity;Loca" +
                                                                 "tion;Link;Path;Spot;Zone;LocationText;LocationImage;Document;TextObject;Journey;" +
                                                                 "Asset;", "", "None;Image;Video;Audio;Document;Misc;All;", "");
     mMusic = new Articy.Unity.Constraints.ReferenceSlotConstraint("FlowFragment;Dialogue;DialogueFragment;Condition;Instruction;Hub;Jump;Entity;Loca" +
                                                                   "tion;Link;Path;Spot;Zone;LocationText;LocationImage;Document;TextObject;Journey;" +
                                                                   "Asset;", "", "None;Image;Video;Audio;Document;Misc;All;", "");
     mPause     = new Articy.Unity.Constraints.BooleanConstraint(false);
     mDelay     = new Articy.Unity.Constraints.NumberConstraint(-3.40282346638529E+38D, 3.40282346638529E+38D, 0, 0, 0, null);
     mTextColor = new Articy.Unity.Constraints.TextConstraint(2048, "", null, false, false);
 }