2016-04-20 11:31:19 +00:00
|
|
|
namespace erl woody
|
2016-04-14 07:40:33 +00:00
|
|
|
|
|
|
|
struct Weapon {
|
|
|
|
1: required string name
|
|
|
|
2: required i16 slot_pos
|
|
|
|
3: optional i16 ammo
|
|
|
|
}
|
|
|
|
|
|
|
|
struct Powerup {
|
|
|
|
1: required string name
|
|
|
|
2: optional i16 level
|
|
|
|
3: optional i16 time_left
|
|
|
|
}
|
|
|
|
|
|
|
|
enum Direction {
|
|
|
|
NEXT = 1
|
|
|
|
PREV = 0
|
|
|
|
}
|
|
|
|
|
2016-04-16 18:23:00 +00:00
|
|
|
exception WeaponFailure {
|
|
|
|
1: required string exception_name = "weapon failure"
|
|
|
|
2: required string code
|
|
|
|
3: optional string reason
|
|
|
|
}
|
|
|
|
|
|
|
|
exception PowerupFailure {
|
|
|
|
1: required string exception_name = "powerup failure"
|
|
|
|
2: required string code
|
|
|
|
3: optional string reason
|
2016-04-14 07:40:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
service Weapons {
|
|
|
|
Weapon switch_weapon(
|
|
|
|
1: Weapon current_weapon
|
|
|
|
2: Direction direction
|
|
|
|
3: i16 shift
|
|
|
|
4: binary data
|
2016-04-16 18:23:00 +00:00
|
|
|
) throws (1: WeaponFailure error)
|
2016-04-14 07:40:33 +00:00
|
|
|
Weapon get_weapon(
|
|
|
|
1: string name
|
|
|
|
2: binary data
|
2016-04-16 18:23:00 +00:00
|
|
|
) throws (1: WeaponFailure error)
|
2020-02-05 11:35:43 +00:00
|
|
|
void get_stuck_looping_weapons()
|
2016-04-14 07:40:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
service Powerups {
|
|
|
|
Powerup get_powerup(
|
|
|
|
1: string name
|
|
|
|
2: binary data
|
2016-04-16 18:23:00 +00:00
|
|
|
) throws(1: PowerupFailure error)
|
2016-05-20 23:26:59 +00:00
|
|
|
Powerup proxy_get_powerup(
|
|
|
|
1: string name
|
|
|
|
2: binary data
|
|
|
|
) throws(1: PowerupFailure error)
|
|
|
|
Weapon bad_proxy_get_powerup(
|
|
|
|
1: string name
|
|
|
|
2: binary data
|
|
|
|
) throws(1: WeaponFailure error)
|
2016-04-14 12:27:08 +00:00
|
|
|
oneway void like_powerup(
|
|
|
|
1: string name
|
|
|
|
2: binary data
|
|
|
|
)
|
2016-04-14 07:40:33 +00:00
|
|
|
}
|
2016-05-20 23:26:59 +00:00
|
|
|
|