public EnumProperty(NameReference value, NameReference enumType, IMEPackage pcc, NameReference?name = null) : base(name) { EnumType = enumType; NameReference enumVal = value; Value = enumVal; EnumValues = UnrealObjectInfo.GetEnumValues(pcc.Game, enumType, true); PropType = PropertyType.ByteProperty; }
public EnumProperty(MemoryStream stream, IMEPackage pcc, NameReference enumType, NameReference?name = null) : base(name) { Offset = stream.Position; EnumType = enumType; NameReference enumVal = new NameReference { Name = pcc.getNameEntry(stream.ReadValueS32()), Number = stream.ReadValueS32() }; Value = enumVal; EnumValues = UnrealObjectInfo.GetEnumValues(pcc.Game, enumType, true); PropType = PropertyType.ByteProperty; }