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); }
public BioQuestGoal ReadQuestGoal() { var goal = new BioQuestGoal { InstanceVersion = ReadInt32(), Name = ReadInt32(), Description = ReadInt32(), Conditional = ReadInt32(), State = ReadInt32() }; return(goal); }
public BioQuestGoal ReadQuestGoal() { var goal = new BioQuestGoal { InstanceVersion = ReadInt32(), Name = ReadInt32(), Description = ReadInt32(), Conditional = ReadInt32(), State = ReadInt32() }; return goal; }