메소드 | 설명 | |
---|---|---|
AvailableInWWW ( Operation operation ) : bool |
returns if an operation is supported by the unity API or not.
|
|
Enumerations ( bool includeParentEnums ) : IEnumerable |
Returns list of enums defined in the service model.
|
|
FindOperation ( string name ) : Operation |
Gets the operation information based on the name of the operation
|
|
FindShape ( string name ) : |
Search the model for shape.
|
|
InitializeServiceModel ( TextReader reader ) : void |
Sets the base json info no matter how the model was constructed
|
|
ServiceModel ( TextReader serviceModelReader, TextReader customizationReader ) : System |
Used for unit testing, creates a service model from a TextReader so that the generation can be checked
|
|
ServiceModel ( string serviceModelPath, string customizationModelPath ) : System |
Used by the generator to create a model for the service being generated
|
|
ToString ( ) : string |
The service model represented as a string
|
메소드 | 설명 | |
---|---|---|
CapitalizeFirstChar ( string text ) : string |
Capitalizes the first character of a string, used to create proper naming for services, attributes, and operations
|
public AvailableInWWW ( Operation operation ) : bool | ||
operation | Operation | |
리턴 | bool |
public Enumerations ( bool includeParentEnums ) : IEnumerable |
||
includeParentEnums | bool | Includes enums from current service model, which are also /// defined in the parent model. |
리턴 | IEnumerable |
public FindOperation ( string name ) : Operation | ||
name | string | The name of the operation that information is needed for |
리턴 | Operation |
public FindShape ( string name ) : |
||
name | string | The name of the shape to search for |
리턴 |
public InitializeServiceModel ( TextReader reader ) : void | ||
reader | TextReader | The reader to pull the model json from |
리턴 | void |
public ServiceModel ( TextReader serviceModelReader, TextReader customizationReader ) : System | ||
serviceModelReader | TextReader | The reader to get the model information from |
customizationReader | TextReader | The reader to get any customizations for the service from |
리턴 | System |
public ServiceModel ( string serviceModelPath, string customizationModelPath ) : System | ||
serviceModelPath | string | Path to the file containing the model of the service |
customizationModelPath | string | Path to the customizations file for the service |
리턴 | System |