public Loop2200E(X12Doc owningDoc, LoopEntity prev, LoopCollection parent) : base(owningDoc, prev, parent)
    {
        ClaimStatusTrackingNumber = new TrnCollection(this, nameof(ClaimStatusTrackingNumber));
        SegmentCollections.Add(ClaimStatusTrackingNumber);
        PayerClaimControlNumber = new RefCollection(this, nameof(PayerClaimControlNumber));
        SegmentCollections.Add(PayerClaimControlNumber);
        InstitutionalBillTypeIdentification = new RefCollection(this, nameof(InstitutionalBillTypeIdentification));
        SegmentCollections.Add(InstitutionalBillTypeIdentification);
        ApplicationOrLocationSystemIdentifier = new RefCollection(this, nameof(ApplicationOrLocationSystemIdentifier));
        SegmentCollections.Add(ApplicationOrLocationSystemIdentifier);
        GroupNumber = new RefCollection(this, nameof(GroupNumber));
        SegmentCollections.Add(GroupNumber);
        PatientControlNumber = new RefCollection(this, nameof(PatientControlNumber));
        SegmentCollections.Add(PatientControlNumber);
        PharmacyPrescriptionNumber = new RefCollection(this, nameof(PharmacyPrescriptionNumber));
        SegmentCollections.Add(PharmacyPrescriptionNumber);
        ClaimIdentificationNumberForClearinghousesAnd = new RefCollection(this, nameof(ClaimIdentificationNumberForClearinghousesAnd));
        SegmentCollections.Add(ClaimIdentificationNumberForClearinghousesAnd);
        ClaimSubmittedCharges = new AmtCollection(this, nameof(ClaimSubmittedCharges));
        SegmentCollections.Add(ClaimSubmittedCharges);
        ClaimServiceDate = new DtpCollection(this, nameof(ClaimServiceDate));
        SegmentCollections.Add(ClaimServiceDate);

        ServiceLineInformationLoop = new Loop2210ECollection("Loop2210E", nameof(ServiceLineInformationLoop), OwningDoc, parent, parent);
        ChildLoopCollections.Add(ServiceLineInformationLoop);
    }
 public Loop2000D(X12Doc owningDoc, LoopEntity prev, LoopCollection parent) : base(owningDoc, prev, parent)
 {
     SubscriberLevel = new HlCollection(this, nameof(SubscriberLevel));
     SegmentCollections.Add(SubscriberLevel);
     SubscriberDemographicInformation = new DmgCollection(this, nameof(SubscriberDemographicInformation));
     SegmentCollections.Add(SubscriberDemographicInformation);
 }
 public Loop2000E(X12Doc owningDoc, LoopEntity prev, LoopCollection parent) : base(owningDoc, prev, parent)
 {
     DependentLevel = new HlCollection(this, nameof(DependentLevel));
     SegmentCollections.Add(DependentLevel);
     DependentDemographicInformation = new DmgCollection(this, nameof(DependentDemographicInformation));
     SegmentCollections.Add(DependentDemographicInformation);
 }
Exemplo n.º 4
0
public Loop2100A(X12Doc owningDoc, LoopEntity prev, LoopCollection parent):base(owningDoc, prev, parent){
PayerName = new Nm1Collection(this, nameof(PayerName));
SegmentCollections.Add(PayerName);
PayerContactInformation = new PerCollection(this, nameof(PayerContactInformation));
SegmentCollections.Add(PayerContactInformation);
 
}
Exemplo n.º 5
0
public Loop2200D(X12Doc owningDoc, LoopEntity prev, LoopCollection parent):base(owningDoc, prev, parent){
ClaimStatusTrackingNumber = new TrnCollection(this, nameof(ClaimStatusTrackingNumber));
SegmentCollections.Add(ClaimStatusTrackingNumber);
ClaimLevelStatusInformation = new StcCollection(this, nameof(ClaimLevelStatusInformation));
SegmentCollections.Add(ClaimLevelStatusInformation);
PayerClaimControlNumber = new RefCollection(this, nameof(PayerClaimControlNumber));
SegmentCollections.Add(PayerClaimControlNumber);
InstitutionalBillTypeIdentification = new RefCollection(this, nameof(InstitutionalBillTypeIdentification));
SegmentCollections.Add(InstitutionalBillTypeIdentification);
PatientControlNumber = new RefCollection(this, nameof(PatientControlNumber));
SegmentCollections.Add(PatientControlNumber);
PharmacyPrescriptionNumber = new RefCollection(this, nameof(PharmacyPrescriptionNumber));
SegmentCollections.Add(PharmacyPrescriptionNumber);
VoucherIdentifier = new RefCollection(this, nameof(VoucherIdentifier));
SegmentCollections.Add(VoucherIdentifier);
ClaimIdentificationNumberForClearinghousesAnd = new RefCollection(this, nameof(ClaimIdentificationNumberForClearinghousesAnd));
SegmentCollections.Add(ClaimIdentificationNumberForClearinghousesAnd);
ClaimServiceDate = new DtpCollection(this, nameof(ClaimServiceDate));
SegmentCollections.Add(ClaimServiceDate);
 
ServiceLineInformationLoop = new Loop2220DCollection("Loop2220D", nameof(ServiceLineInformationLoop), OwningDoc, parent, parent);
ChildLoopCollections.Add(ServiceLineInformationLoop);
DependentLevelLoop = new Loop2000ECollection("Loop2000E", nameof(DependentLevelLoop), OwningDoc, parent, parent);
ChildLoopCollections.Add(DependentLevelLoop);
DependentNameLoop = new Loop2100ECollection("Loop2100E", nameof(DependentNameLoop), OwningDoc, parent, parent);
ChildLoopCollections.Add(DependentNameLoop);
ClaimStatusTrackingNumberLoop = new Loop2200ECollection("Loop2200E", nameof(ClaimStatusTrackingNumberLoop), OwningDoc, parent, parent);
ChildLoopCollections.Add(ClaimStatusTrackingNumberLoop);
}
Exemplo n.º 6
0
public Loop2100D(X12Doc owningDoc, LoopEntity prev, LoopCollection parent):base(owningDoc, prev, parent){
SubscriberName = new Nm1Collection(this, nameof(SubscriberName));
SegmentCollections.Add(SubscriberName);
 
ClaimStatusTrackingNumberLoop = new Loop2200DCollection("Loop2200D", nameof(ClaimStatusTrackingNumberLoop), OwningDoc, parent, parent);
ChildLoopCollections.Add(ClaimStatusTrackingNumberLoop);
}
 public Loop2210D(X12Doc owningDoc, LoopEntity prev, LoopCollection parent) : base(owningDoc, prev, parent)
 {
     ServiceLineInformation = new SvcCollection(this, nameof(ServiceLineInformation));
     SegmentCollections.Add(ServiceLineInformation);
     ServiceLineItemIdentification = new RefCollection(this, nameof(ServiceLineItemIdentification));
     SegmentCollections.Add(ServiceLineItemIdentification);
     ServiceLineDate = new DtpCollection(this, nameof(ServiceLineDate));
     SegmentCollections.Add(ServiceLineDate);
 }
    public Loop2100C(X12Doc owningDoc, LoopEntity prev, LoopCollection parent) : base(owningDoc, prev, parent)
    {
        ProviderName = new Nm1Collection(this, nameof(ProviderName));
        SegmentCollections.Add(ProviderName);

        SubscriberLevelLoop = new Loop2000DCollection("Loop2000D", nameof(SubscriberLevelLoop), OwningDoc, parent, parent);
        ChildLoopCollections.Add(SubscriberLevelLoop);
        SubscriberNameLoop = new Loop2100DCollection("Loop2100D", nameof(SubscriberNameLoop), OwningDoc, parent, parent);
        ChildLoopCollections.Add(SubscriberNameLoop);
    }
    public Loop2100B(X12Doc owningDoc, LoopEntity prev, LoopCollection parent) : base(owningDoc, prev, parent)
    {
        InformationReceiverName = new Nm1Collection(this, nameof(InformationReceiverName));
        SegmentCollections.Add(InformationReceiverName);

        ServiceProviderLevelLoop = new Loop2000CCollection("Loop2000C", nameof(ServiceProviderLevelLoop), OwningDoc, parent, parent);
        ChildLoopCollections.Add(ServiceProviderLevelLoop);
        ProviderNameLoop = new Loop2100CCollection("Loop2100C", nameof(ProviderNameLoop), OwningDoc, parent, parent);
        ChildLoopCollections.Add(ProviderNameLoop);
    }
Exemplo n.º 10
0
public Loop2200C(X12Doc owningDoc, LoopEntity prev, LoopCollection parent):base(owningDoc, prev, parent){
ProviderOfServiceTraceIdentifier = new TrnCollection(this, nameof(ProviderOfServiceTraceIdentifier));
SegmentCollections.Add(ProviderOfServiceTraceIdentifier);
ProviderStatusInformation = new StcCollection(this, nameof(ProviderStatusInformation));
SegmentCollections.Add(ProviderStatusInformation);
 
SubscriberLevelLoop = new Loop2000DCollection("Loop2000D", nameof(SubscriberLevelLoop), OwningDoc, parent, parent);
ChildLoopCollections.Add(SubscriberLevelLoop);
SubscriberNameLoop = new Loop2100DCollection("Loop2100D", nameof(SubscriberNameLoop), OwningDoc, parent, parent);
ChildLoopCollections.Add(SubscriberNameLoop);
}
Exemplo n.º 11
0
public Loop01GE(X12Doc owningDoc, LoopEntity prev, LoopCollection parent):base(owningDoc, prev, parent){
FunctionalGroupHeader = new GsCollection(this, nameof(FunctionalGroupHeader));
SegmentCollections.Add(FunctionalGroupHeader);
FunctionalGroupTrailer = new GeCollection(this, nameof(FunctionalGroupTrailer));
SegmentCollections.Add(FunctionalGroupTrailer);
TransactionSetHeader = new Collection(this, nameof(TransactionSetHeader));
SegmentCollections.Add(TransactionSetHeader);
Empty = new StCollection(this, nameof(Empty));
SegmentCollections.Add(Empty);
Empty = new TableCollection(this, nameof(Empty));
SegmentCollections.Add(Empty);
 
}
Exemplo n.º 12
0
public Loop2220E(X12Doc owningDoc, LoopEntity prev, LoopCollection parent):base(owningDoc, prev, parent){
ServiceLineInformation = new SvcCollection(this, nameof(ServiceLineInformation));
SegmentCollections.Add(ServiceLineInformation);
ServiceLineStatusInformation = new StcCollection(this, nameof(ServiceLineStatusInformation));
SegmentCollections.Add(ServiceLineStatusInformation);
ServiceLineItemIdentification = new RefCollection(this, nameof(ServiceLineItemIdentification));
SegmentCollections.Add(ServiceLineItemIdentification);
ServiceLineDate = new DtpCollection(this, nameof(ServiceLineDate));
SegmentCollections.Add(ServiceLineDate);
TransactionSetTrailer = new SeCollection(this, nameof(TransactionSetTrailer));
SegmentCollections.Add(TransactionSetTrailer);
 
}
Exemplo n.º 13
0
    void CompleteTransition()
    {
        Debug.Log("GameMusicHandler: CompleteTransition");

        currentTransition.state = Transition.State.Done;
        currentLoopCollection   = currentTransition.nextCollection;
        musicLooper.SetBaseTrack(currentLoopCollection.loopBase);

        for (int i = currentTransition.tracksToRemove.Count - 1; i >= 0; --i)
        {
            RemoveTrack(currentTransition.tracksToRemove[i]);
        }
        currentTransition.tracksToRemove.Clear();
    }
Exemplo n.º 14
0
 public LduLineModel(LduLineParameter cnt, List <NameValueInt> list)
 {
     foreach (var item in list)
     {
         LoopCollection.Add(new NameValueInt {
             Name = item.Name, Value = item.Value
         });
     }
     LoopCollection.Add(new NameValueInt {
         Name = "请选择回路", Value = 0
     });
     _inmodel = cnt;
     Remark   = cnt.Remark;
     IsUsed   = cnt.IsUsed;
     LduBrightRateAlarmLimit = cnt.LduBrightRateAlarmLimit;
     //LduCommType = cnt.LduCommTypeCode == EnumCommunicationMode.Socket ? "无线" : "有线";
     LduControlTypeCode        = cnt.LduControlTypeCode;
     LduEndLampportSn          = cnt.LduEndLampportSn;
     LduLightoffImpedanceLimit = cnt.LduLightoffImpedanceLimit;
     LduLightoffSingleLimit    = cnt.LduLightoffSingleLimit;
     LduLightonImpedanceLimit  = cnt.LduLightonImpedanceLimit;
     LduLightonSingleLimit     = cnt.LduLightonSingleLimit;
     LduLineID                   = cnt.LduLineId;
     LduLineName                 = cnt.LduLineName;
     LduLoopID                   = cnt.LduLoopId;
     LduPhase                    = cnt.LduPhase;
     MutualInductorRadio         = cnt.MutualInductorRadio;
     AlarmLineBrightRate         = cnt.AlarmLineBrightRate;
     AlarmLineLightOffImpedance  = cnt.AlarmLineLightOffImpedance;
     AlarmLineLightOffSingle     = cnt.AlarmLineLightOffSingle;
     AlarmLineLightOpenImpedance = cnt.AlarmLineLightOpenImpedance;
     AlarmLineLightOpenSingel    = cnt.AlarmLineLightOpenSingel;
     AlarmLineLosePower          = cnt.AlarmLineLosePower;
     AlarmLineShortCircuit       = cnt.AlarmLineShortCircuit;
     AlarmAutoReport             = cnt.AlarmAutoReport;
     //默认情况下不编辑
     IsEdit = false;
 }
Exemplo n.º 15
0
public Loop2100C(X12Doc owningDoc, LoopEntity prev, LoopCollection parent):base(owningDoc, prev, parent){
ProviderName = new Nm1Collection(this, nameof(ProviderName));
SegmentCollections.Add(ProviderName);
 
}
Exemplo n.º 16
0
public Loop2100B(X12Doc owningDoc, LoopEntity prev, LoopCollection parent):base(owningDoc, prev, parent){
InformationReceiverName = new Nm1Collection(this, nameof(InformationReceiverName));
SegmentCollections.Add(InformationReceiverName);
 
}
Exemplo n.º 17
0
public Loop2000C(X12Doc owningDoc, LoopEntity prev, LoopCollection parent):base(owningDoc, prev, parent){
ServiceProviderLevel = new HlCollection(this, nameof(ServiceProviderLevel));
SegmentCollections.Add(ServiceProviderLevel);
 
}
Exemplo n.º 18
0
public Loop2000B(X12Doc owningDoc, LoopEntity prev, LoopCollection parent):base(owningDoc, prev, parent){
InformationReceiverLevel = new HlCollection(this, nameof(InformationReceiverLevel));
SegmentCollections.Add(InformationReceiverLevel);
 
}
 public Loop2210ECollection(string loopName, string loopNameDescription, X12Doc owningDoc, LoopCollection parent, LoopCollection prev)
     : base(loopName, loopNameDescription, owningDoc, parent, prev)
 {
 }
Exemplo n.º 20
0
 public override void Initialize(Invert.IOC.UFrameContainer container)
 {
     container.AddItem <RequireReference>();
     container.AddTypeItem <OutputsChildItem>();
     container.AddTypeItem <InputsChildItem>();
     container.AddTypeItem <VariablesChildItem>();
     container.AddTypeItem <PropertiesChildItem>();
     container.AddTypeItem <CollectionsChildItem>();
     container.AddItem <BranchesChildItem>();
     CustomAction = container.AddNode <CustomActionNode, CustomActionNodeViewModel, CustomActionNodeDrawer>("CustomAction");
     CustomAction.Color(NodeColor.Gray);
     Data = container.AddGraph <DataGraph, DataNode>("DataGraph");
     Data.Color(NodeColor.Yellow);
     Data.HasSubNode <GroupNode>();
     Data.HasSubNode <EventNode>();
     Data.HasSubNode <ComponentNode>();
     Library = container.AddGraph <LibraryGraph, LibraryNode>("LibraryGraph");
     Library.Color(NodeColor.Yellow);
     Library.HasSubNode <GroupNode>();
     Library.HasSubNode <EventNode>();
     Library.HasSubNode <CustomActionNode>();
     Library.HasSubNode <ComponentNode>();
     Null = container.AddNode <NullNode, NullNodeViewModel, NullNodeDrawer>("Null");
     Null.Color(NodeColor.Purple);
     StringLiteral = container.AddNode <StringLiteralNode, StringLiteralNodeViewModel, StringLiteralNodeDrawer>("StringLiteral");
     StringLiteral.Color(NodeColor.Gray);
     Property = container.AddNode <PropertyNode, PropertyNodeViewModel, PropertyNodeDrawer>("Property");
     Property.Color(NodeColor.Blue);
     String = container.AddNode <StringNode, StringNodeViewModel, StringNodeDrawer>("String");
     String.Color(NodeColor.Purple);
     ActionGroup = container.AddNode <ActionGroupNode, ActionGroupNodeViewModel, ActionGroupNodeDrawer>("ActionGroup");
     ActionGroup.Color(NodeColor.Red);
     Function = container.AddNode <FunctionNode, FunctionNodeViewModel, FunctionNodeDrawer>("Function");
     Function.Color(NodeColor.Lightgoldenrod4);
     Bool = container.AddNode <BoolNode, BoolNodeViewModel, BoolNodeDrawer>("Bool");
     Bool.Color(NodeColor.Purple);
     Module = container.AddGraph <ModuleGraph, ModuleNode>("ModuleGraph");
     Module.Color(NodeColor.Black);
     Module.HasSubNode <EventNode>();
     Module.HasSubNode <ComponentNode>();
     Module.HasSubNode <CustomActionNode>();
     Module.HasSubNode <SystemNode>();
     Module.HasSubNode <GroupNode>();
     StopTimer = container.AddNode <StopTimerNode, StopTimerNodeViewModel, StopTimerNodeDrawer>("StopTimer");
     StopTimer.Color(NodeColor.Gray);
     AllFalse = container.AddNode <AllFalseNode, AllFalseNodeViewModel, AllFalseNodeDrawer>("AllFalse");
     AllFalse.Color(NodeColor.Orange);
     CodeAction = container.AddNode <CodeActionNode, CodeActionNodeViewModel, CodeActionNodeDrawer>("CodeAction");
     CodeAction.Color(NodeColor.Green);
     BoolExpression = container.AddNode <BoolExpressionNode, BoolExpressionNodeViewModel, BoolExpressionNodeDrawer>("BoolExpression");
     BoolExpression.Color(NodeColor.Gray);
     Float = container.AddNode <FloatNode, FloatNodeViewModel, FloatNodeDrawer>("Float");
     Float.Color(NodeColor.Purple);
     UserMethod = container.AddNode <UserMethodNode, UserMethodNodeViewModel, UserMethodNodeDrawer>("UserMethod");
     UserMethod.Color(NodeColor.Blue);
     LoopCollection = container.AddNode <LoopCollectionNode, LoopCollectionNodeViewModel, LoopCollectionNodeDrawer>("LoopCollection");
     LoopCollection.Color(NodeColor.LightGray);
     AnyFalse = container.AddNode <AnyFalseNode, AnyFalseNodeViewModel, AnyFalseNodeDrawer>("AnyFalse");
     AnyFalse.Color(NodeColor.Orange);
     ComponentCreated = container.AddNode <ComponentCreatedNode, ComponentCreatedNodeViewModel, ComponentCreatedNodeDrawer>("ComponentCreated");
     ComponentCreated.Color(NodeColor.Indianred4);
     SetVariable = container.AddNode <SetVariableNode, SetVariableNodeViewModel, SetVariableNodeDrawer>("SetVariable");
     SetVariable.Color(NodeColor.Gray);
     CollectionItemRemoved = container.AddNode <CollectionItemRemovedNode, CollectionItemRemovedNodeViewModel, CollectionItemRemovedNodeDrawer>("CollectionItemRemoved");
     CollectionItemRemoved.Color(NodeColor.Indianred4);
     CollectionModifiedHandler = container.AddNode <CollectionModifiedHandlerNode, CollectionModifiedHandlerNodeViewModel, CollectionModifiedHandlerNodeDrawer>("CollectionModifiedHandler");
     CollectionModifiedHandler.Color(NodeColor.Red);
     Object = container.AddNode <ObjectNode, ObjectNodeViewModel, ObjectNodeDrawer>("Object");
     Object.Color(NodeColor.Purple);
     PropertyChanged = container.AddNode <PropertyChangedNode, PropertyChangedNodeViewModel, PropertyChangedNodeDrawer>("PropertyChanged");
     PropertyChanged.Color(NodeColor.Indianred4);
     Variable = container.AddNode <VariableNode, VariableNodeViewModel, VariableNodeDrawer>("Variable");
     Variable.Color(NodeColor.Gray);
     Group = container.AddNode <GroupNode, GroupNodeViewModel, GroupNodeDrawer>("Group");
     Group.Color(NodeColor.SgiLightBlue);
     Group.HasSubNode <Vector3Node>();
     Group.HasSubNode <Vector2Node>();
     Group.HasSubNode <ConditionNode>();
     Group.HasSubNode <AnyFalseNode>();
     Group.HasSubNode <AnyTrueNode>();
     Group.HasSubNode <BoolExpressionNode>();
     Group.HasSubNode <PropertyNode>();
     Group.HasSubNode <AllTrueNode>();
     Group.HasSubNode <AllFalseNode>();
     Group.HasSubNode <FloatNode>();
     Group.HasSubNode <StringNode>();
     Group.HasSubNode <IntNode>();
     Group.HasSubNode <BoolNode>();
     Descriptor = container.AddNode <DescriptorNode, DescriptorNodeViewModel, DescriptorNodeDrawer>("Descriptor");
     Descriptor.Color(NodeColor.Indianred2);
     Vector3 = container.AddNode <Vector3Node, Vector3NodeViewModel, Vector3NodeDrawer>("Vector3");
     Vector3.Color(NodeColor.Purple);
     Event = container.AddNode <EventNode, EventNodeViewModel, EventNodeDrawer>("Event");
     Event.Inheritable();
     Event.Color(NodeColor.Gold3);
     Literal = container.AddNode <LiteralNode, LiteralNodeViewModel, LiteralNodeDrawer>("Literal");
     Literal.Color(NodeColor.Purple);
     Component = container.AddNode <ComponentNode, ComponentNodeViewModel, ComponentNodeDrawer>("Component");
     Component.Inheritable();
     Component.Color(NodeColor.Darkolivegreen4);
     Int = container.AddNode <IntNode, IntNodeViewModel, IntNodeDrawer>("Int");
     Int.Color(NodeColor.Purple);
     CollectionItemAdded = container.AddNode <CollectionItemAddedNode, CollectionItemAddedNodeViewModel, CollectionItemAddedNodeDrawer>("CollectionItemAdded");
     CollectionItemAdded.Color(NodeColor.Indianred4);
     ComponentDestroyed = container.AddNode <ComponentDestroyedNode, ComponentDestroyedNodeViewModel, ComponentDestroyedNodeDrawer>("ComponentDestroyed");
     ComponentDestroyed.Color(NodeColor.Indianred4);
     Vector2 = container.AddNode <Vector2Node, Vector2NodeViewModel, Vector2NodeDrawer>("Vector2");
     Vector2.Color(NodeColor.Purple);
     SequenceContainer = container.AddNode <SequenceContainerNode, SequenceContainerNodeViewModel, SequenceContainerNodeDrawer>("SequenceContainer");
     SequenceContainer.Color(NodeColor.Red);
     AllTrue = container.AddNode <AllTrueNode, AllTrueNodeViewModel, AllTrueNodeDrawer>("AllTrue");
     AllTrue.Color(NodeColor.Orange);
     StartTimer = container.AddNode <StartTimerNode, StartTimerNodeViewModel, StartTimerNodeDrawer>("StartTimer");
     StartTimer.Color(NodeColor.Gray);
     Condition = container.AddNode <ConditionNode, ConditionNodeViewModel, ConditionNodeDrawer>("Condition");
     Condition.Color(NodeColor.Orange);
     Action = container.AddNode <ActionNode, ActionNodeViewModel, ActionNodeDrawer>("Action");
     Action.Color(NodeColor.Green);
     Handler = container.AddGraph <HandlerGraph, HandlerNode>("HandlerGraph");
     Handler.Color(NodeColor.Indianred4);
     Handler.HasSubNode <SetVariableNode>();
     Handler.HasSubNode <ActionGroupNode>();
     Handler.HasSubNode <ActionNode>();
     Handler.HasSubNode <ComponentNode>();
     Handler.HasSubNode <ObjectNode>();
     Handler.HasSubNode <LoopCollectionNode>();
     Handler.HasSubNode <IntNode>();
     Handler.HasSubNode <PropertyNode>();
     Handler.HasSubNode <EnumValueNode>();
     Handler.HasSubNode <Vector2Node>();
     Handler.HasSubNode <FloatNode>();
     Handler.HasSubNode <NullNode>();
     Handler.HasSubNode <BoolNode>();
     Handler.HasSubNode <SequenceItemNode>();
     Handler.HasSubNode <Vector3Node>();
     Handler.HasSubNode <StringNode>();
     System = container.AddGraph <SystemGraph, SystemNode>("SystemGraph");
     System.Color(NodeColor.Blue);
     System.HasSubNode <CollectionItemAddedNode>();
     System.HasSubNode <ComponentNode>();
     System.HasSubNode <PropertyChangedNode>();
     System.HasSubNode <ComponentCreatedNode>();
     System.HasSubNode <CustomActionNode>();
     System.HasSubNode <HandlerNode>();
     System.HasSubNode <DescriptorNode>();
     System.HasSubNode <EventNode>();
     System.HasSubNode <GroupNode>();
     System.HasSubNode <ComponentDestroyedNode>();
     System.HasSubNode <CollectionItemRemovedNode>();
     Entity = container.AddNode <EntityNode, EntityNodeViewModel, EntityNodeDrawer>("Entity");
     Entity.Color(NodeColor.Gray);
     Color = container.AddNode <ColorNode, ColorNodeViewModel, ColorNodeDrawer>("Color");
     Color.Color(NodeColor.Purple);
     EnumValue = container.AddNode <EnumValueNode, EnumValueNodeViewModel, EnumValueNodeDrawer>("EnumValue");
     EnumValue.Color(NodeColor.Purple);
     AnyTrue = container.AddNode <AnyTrueNode, AnyTrueNodeViewModel, AnyTrueNodeDrawer>("AnyTrue");
     AnyTrue.Color(NodeColor.Orange);
     SequenceItem = container.AddNode <SequenceItemNode, SequenceItemNodeViewModel, SequenceItemNodeDrawer>("SequenceItem");
     SequenceItem.Color(NodeColor.Green);
     container.Connectable <BoolExpressionNode, Expressions>();
     container.Connectable <BoolExpressionNode, GroupNode>();
     container.Connectable <ComponentNode, RequireReference>();
     container.Connectable <ActionNode, ActionNode>();
     container.Connectable <HandlerNode, SequenceItemNode>();
     container.Connectable <SequenceItemNode, SequenceItemNode>();
 }
Exemplo n.º 21
0
public Loop2100E(X12Doc owningDoc, LoopEntity prev, LoopCollection parent):base(owningDoc, prev, parent){
DependentName = new Nm1Collection(this, nameof(DependentName));
SegmentCollections.Add(DependentName);
 
}
Exemplo n.º 22
0
    public void SetLoopCollection(LoopCollection aLoopCollection)
    {
        if (currentLoopCollection == aLoopCollection ||
            currentTransition.state != Transition.State.Done)
        {
            return;
        }

        Debug.Log("GameMusicHandler: Setting loop collection: " + aLoopCollection.ToString());

        List <MusicLooper.PlayingTrack> playingTracks = musicLooper.activeTracks;

        if (playingTracks.Count == 0)
        {
            currentLoopCollection = aLoopCollection;
            Debug.Log("GameMusicHandler: No previous loop collection");


            foreach (LoopCollection.Track track in aLoopCollection.loopTracks)
            {
                AddTrack(track.loopTrack);
                if (track.weight == 1)
                {
                    musicLooper.PlayTrack(track.loopTrack);
                }
            }

            musicLooper.SetBaseTrack(aLoopCollection.loopBase);
        }
        else
        {
            currentTransition.tracksToRemove.Clear();
            currentChange = null;

            currentTransition.nextCollection      = aLoopCollection;
            currentTransition.transitionBaseTrack = aLoopCollection.loopBase;
            if (currentLoopCollection != null &&
                currentLoopCollection.loopBase.clip.length < aLoopCollection.loopBase.clip.length)
            {
                currentTransition.transitionBaseTrack = currentLoopCollection.loopBase;
            }


            Debug.Log("GameMusicHandler: Setting transition base track: " + currentTransition.transitionBaseTrack.ToString());

            bool hasTransitionTrack = false;

            foreach (LoopCollection.Track track in aLoopCollection.loopTracks)
            {
                MusicLooper.PlayingTrack playingTrack = playingTracks.Find(x => x.loopTrack == track.loopTrack);
                if (playingTrack == null)
                {
                    AddTrack(track.loopTrack);
                }
                else if (!playingTrack.isPlaying)
                {
                    musicLooper.PlayTrack(track.loopTrack);
                    hasTransitionTrack = true;
                    Debug.Log("GameMusicHandler: Found transition track: " + track.ToString());
                }
            }

            if (hasTransitionTrack)
            {
                currentTransition.state = Transition.State.StartingTransitionTracks;
                Debug.Log("GameMusicHandler: State: " + Transition.State.StartingTransitionTracks.ToString());
            }
            else
            {
                StopTracksToRemove();
            }
        }
    }