public static void Register(int id, GetDataFunc data, GetDataRefFunc dataRef = null, GetComponentAccessFunc componentAccess = null) { if (_ENTRIES.ContainsKey(id)) { throw new DuplicateIdException(); } _ENTRIES[id] = new Entry(data, dataRef, componentAccess); }
public Entry([NotNull] MethodInfo getData, [NotNull] MethodInfo getDataRef, [NotNull] GetComponentAccessFunc componentAccess) { GetData = getData; GetDataRef = getDataRef; ComponentAccess = componentAccess; }
public Entry(GetDataFunc data, GetDataRefFunc dataRef, GetComponentAccessFunc componentAccess) { Data = data; DataRef = dataRef ?? GetDataRefThrow; ComponentAccess = componentAccess ?? GetComponentAccessDefault; }
public static void Register(int id, MethodInfo getData, MethodInfo getDataRef = null, GetComponentAccessFunc componentAccess = null) { if (_ENTRIES.ContainsKey(id)) { throw new DuplicateIdException(); } _ENTRIES[id] = new Entry(getData, getDataRef ?? GetDataRefThrowMethod, componentAccess ?? GetComponentAccessDefault); }