コード例 #1
0
        private CKlaxScriptEventInfo CreateEvent(FieldInfo eventField, KlaxEventAttribute eventAttribute)
        {
            CKlaxScriptEventInfo info = new CKlaxScriptEventInfo()
            {
                klaxEventInfo   = eventField,
                displayName     = eventAttribute.DisplayName ?? eventField.Name,
                category        = eventAttribute.Category,
                tooltip         = eventAttribute.Tooltip,
                ParameterName1  = eventAttribute.ParameterName1,
                ParameterName2  = eventAttribute.ParameterName2,
                ParameterName3  = eventAttribute.ParameterName3,
                ParameterName4  = eventAttribute.ParameterName4,
                ParameterName5  = eventAttribute.ParameterName5,
                ParameterName6  = eventAttribute.ParameterName6,
                ParameterName7  = eventAttribute.ParameterName7,
                ParameterName8  = eventAttribute.ParameterName8,
                ParameterName9  = eventAttribute.ParameterName9,
                ParameterName10 = eventAttribute.ParameterName10,
            };

            return(info);
        }
コード例 #2
0
 public CEventGraph(CKlaxScriptEventInfo klaxEventInfo, Guid componentGuid, string componentName)
 {
     Name                = componentName + "_" + klaxEventInfo.displayName;
     TargetEvent         = klaxEventInfo;
     TargetComponentGuid = componentGuid;
 }
コード例 #3
0
 public CEventGraph(CKlaxScriptEventInfo targetEvent, object eventSource)
 {
     TargetEvent = targetEvent;
     Subscribe(targetEvent.klaxEventInfo, eventSource);
 }
コード例 #4
0
 public CEventGraph(CKlaxScriptEventInfo klaxEventInfo)
 {
     Name        = klaxEventInfo.displayName;
     TargetEvent = klaxEventInfo;
 }