コード例 #1
0
        public Vector2Int(Dictionary data)
        {
            JSONValueExtractor valueExtractor = GlobalConstants.GameManager.SettingsManager.ValueExtractor;

            this.x = valueExtractor.GetValueFromDictionary <int>(data, "x");
            this.y = valueExtractor.GetValueFromDictionary <int>(data, "y");
        }
コード例 #2
0
        public void Load(Dictionary data)
        {
            GD.PushError("Using the Load of Vector2Int! DOES NOT FUNCTION!");
            JSONValueExtractor valueExtractor = GlobalConstants.GameManager.SettingsManager.ValueExtractor;

            this.x = valueExtractor.GetValueFromDictionary <int>(data, "x");
            this.y = valueExtractor.GetValueFromDictionary <int>(data, "y");
        }
コード例 #3
0
ファイル: WorldTile.cs プロジェクト: Nosrick/JoyGodot
        public void Load(Dictionary data)
        {
            JSONValueExtractor valueExtractor = GlobalConstants.GameManager.SettingsManager.ValueExtractor;

            this.m_Tags = new HashSet <string>(
                valueExtractor.GetArrayValuesCollectionFromDictionary <string>(
                    data,
                    "Tags"));

            this.TileName = valueExtractor.GetValueFromDictionary <string>(
                data,
                "TileName");

            this.TileSet = valueExtractor.GetValueFromDictionary <string>(
                data,
                "TileSet");
        }