public override void Read(PythonReader pr) { pr.ReadTuple(); var listLenght = pr.ReadList(); for (var i = 0; i < listLenght; i++) { var option = pr.ReadStruct <CharacterOptions>(); OptionsList.Add(new CharacterOptions(option.OptionId, option.Value)); } }
public override void Read(PythonReader pr) { pr.ReadTuple(); ListLenght = pr.ReadList(); SkillIds = new int[ListLenght]; SkillLevels = new int[ListLenght]; for (var i = 0; i < ListLenght; i++) { pr.ReadTuple(); SkillIds[i] = pr.ReadInt(); SkillLevels[i] = pr.ReadInt(); } }