public void Decode(string tg, CfgData data)
        {
            switch (tg)
            {
            case "sc": targetSize = data.ToVector3(); break;

            case "pos": targetLocalPosition = data.ToVector3(); break;

            case "col": targetColor = data.ToColor(); break;

            case "tCol": targetTextColor = data.ToColor(); break;
            }
        }
Beispiel #2
0
        public void Decode(string key, CfgData data)
        {
            switch (key)
            {
            case "fU": Down(data.ToVector2());  break;

            case "fP": Down(data.ToVector3());  break;

            case "tU": uvTo = data.ToVector2(); break;

            case "tP": posTo = data.ToVector3(); break;

            case "Up": MouseUpEvent = true; break;
            }
        }
Beispiel #3
0
 public void Decode(string tg, CfgData data)
 {
     switch (tg)
     {
     case "pos": transform.localPosition = data.ToVector3(); break;
     }
 }
Beispiel #4
0
        // .Add("m", _painter.EncodeMeshStuff)
        // .Add_IfNotEmpty("mat", _materialTag);

        public override void Decode(string tg, CfgData data)
        {
            switch (tg)
            {
            case "pos": relativePosition = data.ToVector3(); break;

            case "s": relativeZoom = data.ToFloat(); break;
                //case "m": _painter.Decode(data); break;
                //case "mat": _materialTag = data; break;
            }
        }
Beispiel #5
0
        public void Decode(string tg, CfgData data)
        {
            switch (tg)
            {
            case "pos": _positionLerp.TargetValue = data.ToVector3(); break;

            case "rot": _rotationLerp.TargetValue = data.ToQuaternion(); break;

            case "h": _heightLerp.TargetValue = data.ToFloat(); break;

            case "sp": speed = data.ToFloat(); break;
            }
        }
Beispiel #6
0
        public void Decode(string key, CfgData data)
        {
            switch (key)
            {
            case "fov": fieldOfView = data.ToFloat(); break;

            case "p": position = data.ToVector3(); break;

            case "r": rotation = data.ToQuaternion();  break;

            case "n": nearPlane = data.ToFloat(); break;

            case "f": farPlane = data.ToFloat(); break;

            case "l": localTransform = true; break;
            }
        }