示例#1
0
 public UiTestShop(IValue shopObject)
 {
     foreach (var objects in shopObject.AsDictionary())
     {
         _shopObject[objects.Key] = new UiTestShopObjects(objects.Value, objects.Key);
     }
 }
示例#2
0
        public UiTestSprite(IValue sprite)
        {
            _sprite = sprite;
            _data = new Dictionary<string, UiTestSpriteData>();

            foreach (var icon in _sprite.AsDictionary())
            {
                _data[icon.Key]=new UiTestSpriteData(icon.Value,icon.Key);
            }
        }
示例#3
0
        public UiTestObjectPosition(IValue objectPosition)
        {
            _objectPosition = objectPosition;
            _data           = new Dictionary <string, UiTestObjectPositionData>();

            foreach (var objects in _objectPosition.AsDictionary())
            {
                _data[objects.Key] = new UiTestObjectPositionData(objects.Value, objects.Key);
            }
        }
示例#4
0
        public ExitPositions(IValue exitPosition)
        {
            _exitPosition = exitPosition;
            _data         = new Dictionary <string, ExitPositionData>();


            foreach (var pos in _exitPosition.AsDictionary())
            {
                _data[pos.Key] = new ExitPositionData(pos.Value, pos.Key);
            }
        }
示例#5
0
        public UiTestObjectPositionData(IValue objectsPosition, string sceneName)
        {
            _objectsPosition = objectsPosition;
            _sceneName       = sceneName;
            Position         = new Dictionary <string, Vector3>();

            foreach (var objects in objectsPosition.AsDictionary())
            {
                var cord        = objects.Value;
                var objectsName = objects.Key;
                Position.Add(objectsName, new Vector3(cord[0].AsFloat(), cord[1].AsFloat(), cord[2].AsFloat()));
            }
        }
示例#6
0
        public Scenes(IValue scenes)
        {
            foreach (var scene in scenes.AsDictionary())
            {
                var asList = scene.Value.AsList();
                var list   = new List <string>();
                foreach (var value in asList)
                {
                    list.Add(value.AsString());
                }

                _data[scene.Key] = list;
            }
        }