Remove number and add int and float insted

This commit is contained in:
Fabian Stamm
2022-04-13 19:01:12 +00:00
parent 339d3006d6
commit b980af4b17
10 changed files with 64 additions and 41 deletions

View File

@ -1,6 +1,7 @@
import "./import";
define csharp_namespace Example;
define rust_crate example;
enum TestEnum {
VAL1,
@ -14,17 +15,17 @@ type Test {
atom: TestAtom;
array: TestAtom[];
enumValue: TestEnum;
map: {number, TestAtom};
map: {int, TestAtom};
}
type AddValueRequest {
value1: number;
value2: number;
value1: float;
value2: float;
}
type AddValueResponse {
value: number;
value: float;
}
service TestService {
@ -36,11 +37,11 @@ service TestService {
@Description("Add two numbers")
@Param("value1", "The first value")
@Param("value2", "The second value")
AddValuesMultipleParams(value1: number, value2: number): number;
AddValuesMultipleParams(value1: float, value2: float): float;
@Description("Does literaly nothing")
@Param("param1", "Some number")
ReturningVoid(param1: number): void;
ReturningVoid(param1: float): void;
@Description("Just sends an Event with a String")
@Param("param1", "Parameter with some string for event")
@ -49,5 +50,5 @@ service TestService {
ThrowingError(): void;
FunctionWithArrayAsParamAndReturn(values1: number[], values2: number[]): number[];
FunctionWithArrayAsParamAndReturn(values1: float[], values2: float[]): float[];
}

View File

@ -1,5 +1,5 @@
type TestAtom {
val_number: number;
val_number: float;
val_boolean: boolean;
val_string: string;
}