raylib-wasm-transpiler/tools/js-class-c-struct-transpiler/test/schema.json

86 lines
1.7 KiB
JSON
Raw Normal View History

2024-05-27 18:12:34 -04:00
{
"Vector3": {
2024-06-30 21:12:58 -04:00
"type": "struct",
2024-06-12 23:05:45 -04:00
"comment": "A representation of a position in 3D space",
"members": {
"x": {
"type": "f32",
"kind": "scalar",
"comment": "x coordinate"
},
"y": {
"type": "f32",
"kind": "scalar",
"comment": "y coordinate"
},
"z": {
"type": "f32",
"kind": "scalar",
"comment": "z coordinate"
}
2024-05-27 18:12:34 -04:00
}
},
"Login": {
2024-06-30 21:12:58 -04:00
"type": "struct",
2024-06-12 23:05:45 -04:00
"comment": "The login object",
"members": {
"Email": {
"type": "string",
"kind": "string",
"size": "256",
"comment": "Email of the user"
},
"Password": {
"type": "string",
"kind": "string",
"size": "64",
"comment": "Password of the user"
}
}
},
"User": {
2024-06-30 21:12:58 -04:00
"type": "struct",
2024-06-12 23:05:45 -04:00
"comment": "The user object",
"members": {
"Name": {
"type": "string",
"kind": "string",
"size": "24",
"comment": "Name of the user"
},
"Login": {
"type": "Login",
"kind": "struct",
"comment": "user login info"
},
"Position": {
"type": "Vector3",
"kind": "struct",
"comment": "last logout position of user"
}
}
},
"LoginRequest": {
2024-06-30 21:12:58 -04:00
"type": "request",
2024-06-12 23:05:45 -04:00
"comment": "a request for a login",
"members": {
"Login": {
"type": "Login",
"kind": "struct",
"comment": "user login info"
}
}
},
"LoginResponse": {
2024-06-30 21:12:58 -04:00
"type": "response",
2024-06-12 23:05:45 -04:00
"comment": "the response from a login request",
"members": {
"success": {
"type": "logical",
2024-06-13 01:08:44 -04:00
"kind": "logical",
2024-06-12 23:05:45 -04:00
"comment": "login was successful or not"
}
2024-05-27 18:12:34 -04:00
}
}
}