Exemplo n.º 1
0
 public UnrealEnumDetails(EnumDefinitionRaw enumDefinition, string capitalisedName, UnrealPackageDetails packageDetails)
 {
     CapitalisedName           = capitalisedName;
     UnderlyingEnumDefinition  = enumDefinition;
     UnderlyingPackageDetails  = packageDetails;
     UnderlyingCapitalisedName = enumDefinition.name;
     UnderlyingQualifiedName   = Formatting.QualifiedNameToCppQualifiedName(enumDefinition.qualifiedName);
     CapitalisedQualifiedName  = Formatting.QualifiedNameToCapitalisedCamelCase(enumDefinition.qualifiedName);
 }
Exemplo n.º 2
0
 public UnrealTypeDetails(TypeDefinitionRaw typeDefinition, string capitalisedName, List <UnrealFieldDetails> fieldDetails, UnrealPackageDetails packageDetails)
 {
     CapitalisedName           = capitalisedName;
     UnderlyingTypeDefinition  = typeDefinition;
     UnderlyingPackageDetails  = packageDetails;
     UnderlyingCapitalisedName = typeDefinition.name;
     UnderlyingQualifiedName   = Formatting.QualifiedNameToCppQualifiedName(typeDefinition.qualifiedName);
     CapitalisedQualifiedName  = Formatting.QualifiedNameToCapitalisedCamelCase(typeDefinition.qualifiedName);
     FieldDetailsList          = fieldDetails;
     EventsUsingThisType       = false;
 }
Exemplo n.º 3
0
        public UnrealComponentDetails(ComponentDefinitionRaw componentDefinition, string captialisedName, List<UnrealFieldDetails> fieldDetails, List<UnrealEventDetails> eventDetails, List<UnrealCommandDetails> commandDetails, UnrealPackageDetails packageDetails)
        {
            CapitalisedName = captialisedName;
            UnderlyingComponentDefinition = componentDefinition;
            ComponentId = string.Format("{0}", componentDefinition.id);
            UnderlyingQualifiedName = Formatting.QualifiedNameToCppQualifiedName(componentDefinition.qualifiedName);
            UnderlyingCapitalisedName = componentDefinition.name;
            CapitalisedQualifiedName = Formatting.QualifiedNameToCapitalisedCamelCase(componentDefinition.qualifiedName);
            CapitalisedDataName = Formatting.QualifiedNameToCppQualifiedName(componentDefinition.dataDefinition.TypeName.Split('.').Last());
            QualifiedCapitalisedDataName = Formatting.QualifiedNameToCppQualifiedName(componentDefinition.dataDefinition.TypeName);

            UnderlyingPackageDetails = packageDetails;
            FieldDetailsList = fieldDetails;
            EventDetailsList = eventDetails;
            CommandDetailsList = commandDetails;
        }
Exemplo n.º 4
0
 public UnrealCommandDetails(ComponentDefinitionRaw.CommandDefinitionRaw commandDefinition,
                             string capitalisedName,
                             string qualifiedOwnerName,
                             string capitalisedOwnerName,
                             IUnrealTypeReference requestTypeReference,
                             IUnrealTypeReference responseTypeReference,
                             UnrealPackageDetails packageDetails)
 {
     CapitalisedName             = capitalisedName;
     UnderlyingCommandDefinition = commandDefinition;
     UnderlyingCapitalisedName   = Formatting.SnakeCaseToCapitalisedCamelCase(commandDefinition.name);
     UnderlyingPackageDetails    = packageDetails;
     QualifiedOwnerName          = qualifiedOwnerName;
     CapitalisedOwnerName        = capitalisedOwnerName;
     UnrealRequestTypeDetails    = requestTypeReference;
     UnrealResponseTypeDetails   = responseTypeReference;
     UnrealCommandDelegateType   = string.Format("{0}{1}", responseTypeReference.CapitalisedName, requestTypeReference.CapitalisedName);
     UnrealCommandDelegateName   = string.Format("F{0}Command", CapitalisedName);
 }