コード例 #1
0
        public override ScriptStats GetStatistics()
        {
            ScriptStats s = new ScriptStats();

            s.StringBlock++;
            return(s);
        }
コード例 #2
0
        public ScriptStats GetStatistics()
        {
            ScriptStats s = Spine.GetStatistics();

            s.Add(triggerSlot.GetStatistics());
            return(s);
        }
コード例 #3
0
ファイル: ObjectBlock.cs プロジェクト: KateHowland/flip
        public override ScriptStats GetStatistics()
        {
            ScriptStats s = new ScriptStats();

            s.Add(this);
            return(s);
        }
コード例 #4
0
        public override ScriptStats GetStatistics()
        {
            ScriptStats s = new ScriptStats();

            s.Not++;
            s.Add(slot1.GetStatistics());
            return(s);
        }
コード例 #5
0
        public override ScriptStats GetStatistics()
        {
            ScriptStats s = new ScriptStats();

            s.IfThen++;
            s.Add(slot.GetStatistics());
            s.Add(Consequences.GetStatistics());
            return(s);
        }
コード例 #6
0
        public ScriptStats GetStatistics()
        {
            ScriptStats s = new ScriptStats();

            s.Add(this);
            if (slot.Contents != null)
            {
                s.Line = 1;
                s.Add(slot.GetStatistics());
            }
            return(s);
        }
コード例 #7
0
        public override ScriptStats GetStatistics()
        {
            ScriptStats s = new ScriptStats();

            s.Add(this);

            foreach (BlockSlot slot in GetSlots())
            {
                s.Add(slot.GetStatistics());
            }

            return(s);
        }
コード例 #8
0
        public ScriptStats GetStatistics()
        {
            ScriptStats s = new ScriptStats();

            List <Peg> pegs = GetFilledPegs();

            s.Line += pegs.Count;

            foreach (Peg peg in pegs)
            {
                s.Add(peg.Slot.GetStatistics());
            }

            return(s);
        }
コード例 #9
0
ファイル: ScriptStats.cs プロジェクト: KateHowland/flip
        public void Add(ScriptStats stats)
        {
            line        += stats.line;
            and         += stats.and;
            or          += stats.or;
            not         += stats.not;
            numberBlock += stats.numberBlock;
            stringBlock += stats.stringBlock;
            ifthen      += stats.ifthen;
            ifthenelse  += stats.ifthenelse;
            whileloop   += stats.whileloop;
            dowhileloop += stats.dowhileloop;
            objectblock += stats.objectblock;
            action      += stats.action;
            condition   += stats.condition;
            eventBlock  += stats.eventBlock;

            Add(actions, stats.actions);
            Add(conditions, stats.conditions);
            Add(events, stats.events);
        }
コード例 #10
0
 public void Add(ScriptStats ss)
 {
     stats.Add(ss);
 }
コード例 #11
0
 public ModuleStats()
 {
     name            = String.Empty;
     attachedScripts = 0;
     stats           = new ScriptStats();
 }