protected override void HandleCloned(PropertyData res) { MulticastDelegatePropertyData cloningProperty = (MulticastDelegatePropertyData)res; FMulticastDelegate[] newData = new FMulticastDelegate[this.Value.Length]; for (int i = 0; i < this.Value.Length; i++) { newData[i] = new FMulticastDelegate(this.Value[i].Number, (FName)this.Value[i].Delegate.Clone()); } cloningProperty.Value = newData; }
public override void Read(AssetBinaryReader reader, bool includeHeader, long leng1, long leng2 = 0) { if (includeHeader) { PropertyGuid = reader.ReadPropertyGuid(); } int numVals = reader.ReadInt32(); Value = new FMulticastDelegate[numVals]; for (int i = 0; i < numVals; i++) { Value[i] = new FMulticastDelegate(reader.ReadInt32(), reader.ReadFName()); } }