Inheritance: BioVersionedNativeObject
コード例 #1
0
            public void Write(BioQuestGoal goal)
            {
                if (goal == null)
                {
                    throw new ArgumentNullException(nameof(goal));
                }

                Write(goal.InstanceVersion);
                Write(goal.Name);
                Write(goal.Description);
                Write(goal.Conditional);
                Write(goal.State);
            }
コード例 #2
0
            public BioQuestGoal ReadQuestGoal()
            {
                var goal = new BioQuestGoal
                {
                    InstanceVersion = ReadInt32(),
                    Name            = ReadInt32(),
                    Description     = ReadInt32(),
                    Conditional     = ReadInt32(),
                    State           = ReadInt32()
                };

                return(goal);
            }
コード例 #3
0
			public void Write(BioQuestGoal goal)
			{
				if (goal == null)
				{
					throw new ArgumentNullException(nameof(goal));
				}

				Write(goal.InstanceVersion);
				Write(goal.Name);
				Write(goal.Description);
				Write(goal.Conditional);
				Write(goal.State);
			}
コード例 #4
0
			public BioQuestGoal ReadQuestGoal()
			{
				var goal = new BioQuestGoal
				{
					InstanceVersion = ReadInt32(),
					Name = ReadInt32(),
					Description = ReadInt32(),
					Conditional = ReadInt32(),
					State = ReadInt32()
				};

				return goal;
			}