import Lacuna from '../lacuna'; import Endpoint from '../core/endpoint'; import * as B from '../types/body'; class Body extends Endpoint { lacuna: Lacuna; module: string; constructor(lacuna: Lacuna, module: string) { super(); this.lacuna = lacuna; this.module = module; } getBuildings(params: B.GetBuildingsParams) { return this.withBuildingIds( this.callWithSession('get_buildings', params) ); } getBuildingsResources(params: B.GetBuildingsResourcesParams) { return this.withBuildingIds( this.callWithSession('get_buildings_resources', params) ); } getStatus(params: B.GetStatusParams) { return this.callWithSession('get_status', params); } getBodyStatus(params: B.GetBodyStatusParams) { return this.callWithSession('get_body_status', params); } rearrangeBuildings(params: B.RearrangeBuildingsParams) { return this.callWithSession('rearrange_buildings', params); } getBuildable(params: B.GetBuildableParams) { return this.callWithSession('get_buildable', params); } abandon(params: B.AbandonParams) { return this.callWithSession('abandon', params); } rename(params: B.RenameParams) { return this.callWithSession('rename', params); } setColonyNotes(params: B.SetColonyNotesParams) { return this.callWithSession('set_colony_notes', params); } } export default Body;