public void Setup(int inCollectionIndex, [NotNull] Type inType, GetCollectionMember inGetDelegate, SetCollectionMember inSetDelegate) { #if DEV_MODE && PI_ASSERTATIONS Debug.Assert(inType != null); #endif collectionIndex = inCollectionIndex; type = inType; get = inGetDelegate; set = inSetDelegate; #if DEV_MODE && DEBUG_SETUP_COLLECTION_MEMBER Debug.Log("CollectionMemberData.Setup(type=" + inType.Name + ", get=" + StringUtils.ToString(get) + ", set=" + StringUtils.ToString(set) + ")"); #endif }
public void Setup(int inCollectionIndex, [NotNull] Type inType, GetCollectionMember inGetDelegate, SetCollectionMember inSetDelegate, SerializedProperty inSerializedProperty) { serializedProperty = inSerializedProperty; Setup(inCollectionIndex, inType, inGetDelegate, inSetDelegate); }
public static LinkedMemberInfo CreateForCollectionMember([NotNull] LinkedMemberHierarchy hierarchy, [NotNull] LinkedMemberInfo parent, Type type, int collectionIndex, GetCollectionMember getDelegate, SetCollectionMember setDelegate) { CollectionMemberData memberData; if (!collectionMemberPool.TryGet(out memberData)) { memberData = new CollectionMemberData(); } var created = Create(hierarchy, memberData); created.SetupCollectionMember(parent, type, collectionIndex, getDelegate, setDelegate); return(created); }