Пример #1
0
 public UnityCommandDetails(UnityComponentDefinition.UnityCommandDefinition commandDefinition)
 {
     CommandName       = Formatting.SnakeCaseToCapitalisedCamelCase(commandDefinition.Name);
     CamelCaseTypeName = "spatialOS" + Formatting.QualifiedNameToCapitalisedCamelCase(commandDefinition.Name);
     RequestType       = "global::" + UnityTypeMappings.PackagePrefix +
                         Formatting.CapitaliseQualifiedNameParts(commandDefinition.RequestType.typeDefinition.QualifiedName);
     ResponseType = "global::" + UnityTypeMappings.PackagePrefix +
                    Formatting.CapitaliseQualifiedNameParts(commandDefinition.ResponseType.typeDefinition.QualifiedName);
 }
Пример #2
0
 public UnityCommandDetails(UnityComponentDefinition.UnityCommandDefinition commandDefinition)
 {
     this.commandDefinition = commandDefinition;
 }