コード例 #1
0
ファイル: ScrollDetails.cs プロジェクト: SESch93/UFrameIT
    private void readPushout(List <Scroll.ScrollFact> pushoutFacts)
    {
        FactManager factManager = cursor.GetComponent <FactManager>();

        if (pushoutFacts.Count == 0)
        {
            PushoutFactFailEvent.Invoke(null);
        }

        bool samestep = false;

        for (int i = 0; i < pushoutFacts.Count; i++, samestep = true)
        {
            Fact newFact = ParsingDictionary.parseFactDictionary[pushoutFacts[i].getType()].Invoke(pushoutFacts[i]);
            if (newFact != null)
            {
                PushoutFactEvent.Invoke(FactManager.AddFactIfNotFound(newFact, out bool exists, samestep));
            }
            else
            {
                Debug.Log("Parsing on pushout-fact returned null -> One of the dependent facts does not exist");
            }
        }
    }