public RSTriggerInfo(RSTriggerAttribute inAttribute, FieldInfo inFieldInfo) : base(inAttribute, inFieldInfo) { TriggerId = new RSTriggerId(IdHash); if (inAttribute.ParameterType != null) { ParameterType = new RSParameterInfo(inAttribute.ParameterName, inAttribute.ParameterDescription, inAttribute.ParameterType, false); } OwnerType = inAttribute.Global ? null : (inAttribute.OwnerType ?? OwnerType); }
internal void GenerateParameters(RSTypeAssembly inAssembly) { int totalArgs = m_Parameters.Length - m_MethodSettings.EditorArgsStartIndex; Parameters = new RSParameterInfo[totalArgs]; for (int i = 0; i < totalArgs; ++i) { int idx = i + m_MethodSettings.EditorArgsStartIndex; ParameterInfo paramInfo = m_Parameters[idx]; RSParameterAttribute paramAttribute = paramInfo.GetCustomAttribute <RSParameterAttribute>(); Parameters[i] = new RSParameterInfo(paramAttribute, paramInfo); Parameters[i].Link(inAssembly); } TempArgStorage = new RSValue[totalArgs]; }