예제 #1
0
        public static bool TryGetValue(this InfoListModel @this, string key, out string value)
        {
            var kv = @this.dictionary.KeyValueListByKey(key);

            if (kv.HasValue)
            {
                value = kv.Value.StringValue;
                return(true);
            }
            else
            {
                value = default(string);
                return(false);
            }
        }
예제 #2
0
 public RoadDataModel(string id, List <NodeDataModel> positions, InfoListModel infoList)
 {
     this.id        = id;
     this.positions = positions;
     this.infoList  = infoList;
 }
예제 #3
0
 public BuildingDataModel(string id, List <PositionModel> exteriorPositions, InfoListModel infoList)
 {
     this.id = id;
     this.exteriorPositions = exteriorPositions;
     this.infoList          = infoList;
 }
예제 #4
0
 public NodeDataModel(string id, PositionModel position, InfoListModel infoList)
 {
     this.id       = id;
     this.position = position;
     this.infoList = infoList;
 }