public bool Accept(SubscriberNode sub)
    {
        if (currentCount >= 4)
        {
            return false;
        }

        choicesTexts[currentCount].SetSubscriber(sub);
        currentCount++;
        return true;
    }
        static void Main(string[] args)
        {
            RpgEngine.init();

            IPlatformSupport platform = new DefaultJsonPlatformSupport();

            SubscriberNode node = new SubscriberNode();

            node.initPlatform(platform);
            DllTransport tr = DllTransport.getThreadTransport();

            node.initDllTransport(tr);

            node.init();

            while (true)
            {
                node.checkIncomingMessages();

                Thread.Sleep(100);
            }
        }
 public Connection(SubscriberNode node_)
 {
     this.node = node_;
 }
 public void SetSubscriber(SubscriberNode newSub)
 {
     sub = newSub;
     uiText.text = newSub.text;
 }
 public UserChoiceNode(Text uiText)
 {
     this.uiText = uiText;
     this.sub = null;
     for (int r = 0; r < 2; r++)
     {
         for (int c = 0; c < 2; c++)
         {
             if (choices[r, c] == null)
             {
                 choices[r, c] = this;
                 return;
             }
         }
     }
 }