//public int getSize(bool nameTable) //{ // return _fromEnum ? ArkArchive.GetNameLength(_nameValue, nameTable) : 1; //} public void read(ArkArchive archive, ArkName enumName, bool propertyIsExcluded = false) { _enumName = enumName; _fromEnum = !enumName.Equals(ArkName.NONE_NAME); if (propertyIsExcluded) { if (_fromEnum) { archive.SkipName(); } else { archive.Position += 1; } } else { if (_fromEnum) { _nameValue = archive.GetName(); } else { _byteValue = archive.GetByte(); } } }
//public int getSize(bool nameTable) //{ // return _fromEnum ? ArkArchive.GetNameLength(_nameValue, nameTable) : 1; //} public void read(ArkArchive archive, ArkName enumName) { _enumName = enumName; _fromEnum = !enumName.Equals(ArkName.NONE_NAME); if (_fromEnum) { _nameValue = archive.GetName(); } else { _byteValue = archive.GetByte(); } }