コード例 #1
0
        public override void Decode(string tg, CfgData data)
        {
            switch (tg)
            {
            case "expVis": data.Decode(out _nodeEnteredVisuals); break;

            case "subVis": data.Decode(out _nodeActiveDefaultVisuals); break;

            case "disVis": data.Decode(out _nodeInactiveVisuals); break;

            case "bg_cfg": source.visualStyleConfigs[BoxButtons.classTag] = data; break;

            case "bg_cfgs": data.Decode_Dictionary(out source.visualStyleConfigs); break;

            case "URL": imageUrl = data.ToString(); break;

            case "imgScl": _imageScaling = data.ToFloat(); break;

            case "imgMd": _mode = (ImageMode)data.ToInt(); break;

            case "hidTxt": _hideLabel = data.ToBool(); break;

            case "m": MeshObjectGetOrCreate().DecodeFull(data); break;
            }
        }
コード例 #2
0
        //  .Add_IfNotDefault("tags", boolTags)
        //  .Add_IfNotDefault("enumTags", enumTags);

        public virtual void Decode(string tg, CfgData data)
        {
            switch (tg)
            {
            case "ints": data.Decode(out ints); break;

            case "bools": data.Decode(out booleans); break;
            }
        }
コード例 #3
0
        public override void Decode(string tg, CfgData data)
        {
            switch (tg)
            {
            case "b": data.Decode(base.Decode); break;    //data.Decode_Base(base.Decode, this); break;

            case "inBr": data.Decode(out interactionBranch);  break;
            }
        }
コード例 #4
0
        public void Decode(string tg, CfgData data)
        {
            switch (tg)
            {
            case "n": _name = data.ToString(); break;

            case "ind": _index = data.ToInt(); break;

            case "t":
                data.Decode(out _triggers);
                foreach (var t in _triggers)
                {
                    t.groupIndex   = _index;
                    t.triggerIndex = _triggers.currentEnumerationIndex;
                }
                break;

            case "br": _browsedGroup = data.ToInt(); break;

            case "show": _showInInspectorBrowser = data.ToBool(); break;

            case "last": _lastUsedTrigger = data.ToInt(); break;

            case "auth": authorName = data.ToString(); break;
            }
        }
コード例 #5
0
 public override void Decode(string tg, CfgData data)
 {
     switch (tg)
     {
     case "b": data.Decode(base.Decode); break;     //.Decode_Base(base.Decode); break;
     }
 }
コード例 #6
0
            public override void Decode(string tg, CfgData data)
            {
                switch (tg)
                {
                case "b": data.Decode(base.Decode); break;     //data.Decode_Base(base.Decode, this); break;

                case "t": text = data.ToString(); break;
                }
            }
コード例 #7
0
ファイル: Condition.cs プロジェクト: quizcanners/Node-Notes
        public override void Decode(string tg, CfgData data)
        {
            switch (tg)
            {
            case "b": compareValue = data.ToBool(); break;

            case "ind": data.Decode(DecodeIndex); break;
            }
        }
コード例 #8
0
            public override void Decode(string key, CfgData data)
            {
                switch (key)
                {
                case "b": data.Decode(base.Decode); break;

                case "mp": referenceTexture.DecodeFull(data); break;
                }
            }
コード例 #9
0
        public override void Decode(string tg, CfgData data)
        {
            switch (tg)
            {
            case "b": data.Decode(base.Decode); break;

            case "lnk": linkedNodeIndex = data.ToInt(); break;
            }
        }
コード例 #10
0
            public override void Decode(string key, CfgData data)
            {
                switch (key)
                {
                case "b": data.Decode(base.Decode); break;    //data.DecodeInto(base.Decode); break;

                case "gotVol": expectingAVolume = data.ToBool(); break;
                }
            }
コード例 #11
0
        public override void Decode(string tg, CfgData data)
        {
            switch (tg)
            {
            case "b": data.Decode(base.Decode); break;

            case "cnd": _condition.DecodeFull(data); break;
            }
        }
コード例 #12
0
ファイル: DnD_roster.cs プロジェクト: quizcanners/Node-Notes
        public virtual void Decode(string tg, CfgData data)
        {
            switch (tg)
            {
            case "n": name = data.ToString(); break;

            case  "d": description = data.ToString(); break;

            case "vc": data.Decode(out visibilityConditions); break;
            }
        }
コード例 #13
0
        public override void Decode(string tg, CfgData data)
        {
            switch (tg)
            {
            case "b": data.Decode(base.Decode); break;

            case "exit": data.ToList(out _onExitResults); break;

            case "ign": inspectedGameNodeItems = data.ToInt(0); break;
            }
        }
コード例 #14
0
ファイル: DnD_roster.cs プロジェクト: quizcanners/Node-Notes
        public override void Decode(string tg, CfgData data)
        {
            switch (tg)
            {
            case "b": data.Decode(base.Decode); break;

            case "el": data.ToList(out _perBookGroups); break;

            case "i": _inspectedGroup = data.ToInt(); break;
            }
        }
コード例 #15
0
ファイル: Condition.cs プロジェクト: quizcanners/Node-Notes
        public override void Decode(string tg, CfgData data)
        {
            switch (tg)
            {
            case "v": compareValue = data.ToInt(); break;

            case "ty": type = (ConditionType)data.ToInt(); break;

            case "ind": data.Decode(DecodeIndex); break;
            }
        }
コード例 #16
0
ファイル: Result.cs プロジェクト: quizcanners/Node-Notes
        public override void Decode(string tg, CfgData data)
        {
            switch (tg)
            {
            case "ty": type = (ResultType)data.ToInt(); break;

            case "val": updateValue = data.ToInt(); break;

            case "ind": data.Decode(DecodeIndex); break;
            }
        }
コード例 #17
0
ファイル: Node.cs プロジェクト: quizcanners/Node-Notes
        public override void Decode(string tg, CfgData data)
        {
            switch (tg)
            {
            case "b": data.Decode(base.Decode); break;    //data.Decode_Base(base.Decode, this); break;

            case "bg": visualStyleTag = data.ToString(); break;

            case "sub": data.ToList(out coreNodes); break;

            case "gn":  data.ToList(out gameNodes, GameNodeBase.all); break;
            }
        }
コード例 #18
0
            public override void Decode(string key, CfgData data)
            {
                switch (key)
                {
                case "b": data.Decode(base.Decode); break;

                case "crn": _roundedCorners.DecodeFull(data); break;

                case "hov": valueWhenOver = data.ToFloat(); break;

                case "nrm": valueWhenOff = data.ToFloat(); break;
                }
            }
コード例 #19
0
        public override void Decode(string tg, CfgData data)
        {
            switch (tg)
            {
            case "b": data.Decode(base.Decode); break;     //data.Decode_Base(base.Decode, this); break;

            case "t": type = (BookLinkType)data.ToInt(); break;

            case "lnk": linkedBookName = data.ToString(); break;

            case "au": linkedBookAuthor = data.ToString(); break;

            case "ep": bookEntryPoint = data.ToString(); break;
            }
        }
コード例 #20
0
        public override void Decode(string key, CfgData data)
        {
            switch (key)
            {
            case "typeGPU": data.ToInt(ref _inGpuBrushType); break;

            case "typeCPU": data.ToInt(ref _inCpuBrushType); break;

            case "size2D": brush2DRadius = data.ToFloat(); break;

            case "size3D": brush3DRadius = data.ToFloat(); break;

            case "useMask": useMask = data.ToBool(); break;

            case "mask": mask = (ColorMask)data.ToInt(0); break;

            case "modeCPU":  data.ToInt(ref _inCpuBlitMode); break;

            case "modeGPU":  data.ToInt(ref _inGpuBlitMode); break;

            case "bc": Color = data.ToColor(); break;

            case "source":  data.ToInt(ref selectedSourceTexture); break;

            case "blur": blurAmount = data.ToFloat(); break;

            case "decA": decalAngle = data.ToFloat(); break;

            case "decNo":  data.ToInt(ref selectedDecal); break;

            case "Smask":  data.ToInt(ref selectedSourceMask); break;

            case "maskTil": maskTiling = data.ToFloat(); break;

            case "maskFlip": flipMaskAlpha = data.ToBool(); break;

            case "hard": hardness = data.ToFloat(); break;

            case "Speed": _dFlow.Value = data.ToFloat(); break;

            case "dSpeed": _dFlow.Decode(data); break;

            case "dyn": data.Decode(out brushDynamic, BrushDynamic.Base.all); break;

            case "maskOff": maskOffset = data.ToVector2(); break;
            }
        }
コード例 #21
0
        public void Decode(string tg, CfgData data)
        {
            switch (tg)
            {
            case "goto": nextOne = data.ToString(); break;

            case "cnd": data.Decode(out conditions); break;

            case "t": text.DecodeFull(data); break;

            case "ts2b": text2.DecodeFull(data); break;

            case "res": data.ToList(out results); break;

            case "ins": _inspectedItems = data.ToInt(); break;
            }
        }
コード例 #22
0
        public void Decode(string tg, CfgData data)
        {
            switch (tg)
            {
            case "ref": referenceName = data.ToString(); break;

            case "Conds": data.Decode(out conditions); break;

            case "txts": texts.DecodeFull(data); break;

            case "opt": data.ToList(out choices); break;

            case "fin": data.ToList(out finalResults); break;

            case "is": _inspectedItems = data.ToInt(); break;

            case "bc": _inspectedChoice = data.ToInt(); break;

            case "ir": _inspectedResult = data.ToInt(); break;
            }
        }