Esempio n. 1
0
        private List <AssetTypeInfo> HandleGetAvailableAssetTypes(ReferencedFileSave referencedFileSave)
        {
            var element = CodeGeneratorManager.GetElementFrom(referencedFileSave);

            if (element != null)
            {
                var foundItem = AssetTypeInfoManager.Self.AssetTypesForThisProject
                                .Where(item => item.QualifiedRuntimeTypeName.QualifiedType ==
                                       GueDerivingClassCodeGenerator.Self.GetQualifiedRuntimeTypeFor(element));

                if (foundItem.Any())
                {
                    return(foundItem.ToList());
                }
            }

            return(null);
        }