mirror of https://github.com/marrub--/zscript-doc
Expand GetDefaultByType's description
- Fix syntax grammar in language doc - Expand GetDefaultByType's descriptionpull/1/head
parent
822917c0b6
commit
afae89a87a
|
@ -737,7 +737,7 @@ The syntax for an argument list is:
|
|||
Expression $[ , Expression]$...
|
||||
```
|
||||
|
||||
Function calls may name arguments which have defaults with the syntax `Identifier: Expression`, possibly skipping over other defaulted arguments. After the first named defaultable argument, all other arguments must be named as well.
|
||||
Function calls may name arguments which have defaults with the syntax `Identifier : Expression`, possibly skipping over other defaulted arguments. After the first named defaultable argument, all other arguments must be named as well.
|
||||
|
||||
### Unary expressions
|
||||
|
||||
|
|
|
@ -162,13 +162,13 @@ Global Functions
|
|||
### Class Handling
|
||||
|
||||
```
|
||||
Type GetDefaultByType(TypeName);
|
||||
Type GetDefaultByType(class<Actor> type);
|
||||
Type New(class typename = ThisClass);
|
||||
```
|
||||
|
||||
- `GetDefaultByType`
|
||||
|
||||
Gets the default value of any built-in type.
|
||||
Returns an object containing the default values for each member of the `Actor` type provided as they would be set in `BeginPlay`. **Note that the return value cannot be serialized and if stored must be marked as `transient`.** The returned object is a pseudo-object which is stored only in-memory.
|
||||
|
||||
- `New`
|
||||
|
||||
|
|
Loading…
Reference in New Issue