mirror of
https://github.com/valitydev/woody_erlang.git
synced 2024-11-06 10:25:22 +00:00
53 lines
1.6 KiB
Erlang
53 lines
1.6 KiB
Erlang
%%
|
|
%% Autogenerated by Thrift Compiler (1.0.0-dev)
|
|
%%
|
|
%% DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
%%
|
|
|
|
-module(woody_test_weapons_service).
|
|
-behaviour(thrift_service).
|
|
|
|
|
|
-include("woody_test_weapons_service.hrl").
|
|
|
|
-export([function_info/2]).
|
|
-export([struct_info/1]).
|
|
-export([function_names/0]).
|
|
|
|
function_names() ->
|
|
[
|
|
'switch_weapon',
|
|
'get_weapon'
|
|
].
|
|
|
|
struct_info(_) -> erlang:error(badarg).
|
|
|
|
% switch_weapon(This, Current_weapon, Direction, Shift, Data)
|
|
function_info('switch_weapon', params_type) ->
|
|
{struct, [
|
|
{1, undefined, {struct, {woody_test_types, 'weapon'}}, 'current_weapon', #'weapon'{}},
|
|
{2, undefined, {enum, {woody_test_types, 'direction'}}, 'direction', undefined},
|
|
{3, undefined, i16, 'shift', undefined},
|
|
{4, undefined, string, 'data', undefined}
|
|
]};
|
|
function_info('switch_weapon', reply_type) ->
|
|
{struct, {woody_test_types, 'weapon'}};
|
|
function_info('switch_weapon', exceptions) ->
|
|
{struct, [
|
|
{1, undefined, {struct, {woody_test_types, 'weapon_failure'}}, 'error', #'weapon_failure'{}}
|
|
]};
|
|
% get_weapon(This, Name, Data)
|
|
function_info('get_weapon', params_type) ->
|
|
{struct, [
|
|
{1, undefined, string, 'name', undefined},
|
|
{2, undefined, string, 'data', undefined}
|
|
]};
|
|
function_info('get_weapon', reply_type) ->
|
|
{struct, {woody_test_types, 'weapon'}};
|
|
function_info('get_weapon', exceptions) ->
|
|
{struct, [
|
|
{1, undefined, {struct, {woody_test_types, 'weapon_failure'}}, 'error', #'weapon_failure'{}}
|
|
]};
|
|
function_info(_Func, _Info) -> erlang:error(badarg).
|
|
|