public UiTestShop(IValue shopObject) { foreach (var objects in shopObject.AsDictionary()) { _shopObject[objects.Key] = new UiTestShopObjects(objects.Value, objects.Key); } }
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); } }
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); } }
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); } }
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())); } }
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; } }