#[repr(C)]pub struct SSendResourcesCommand {
pub resourceId: c_int,
pub amount: f32,
pub receivingTeamId: c_int,
pub ret_isExecuted: bool,
}
Expand description
Give <amount> units of resource <resourceId> to team <receivingTeam>.
- the amount is capped to the AI team’s resource levels
- does not check for alliance with <receivingTeam>
- LuaRules might not allow resource transfers, AI’s must verify the deduction
Fields§
§resourceId: c_int
§amount: f32
§receivingTeamId: c_int
§ret_isExecuted: bool
Trait Implementations§
Source§impl Clone for SSendResourcesCommand
impl Clone for SSendResourcesCommand
Source§fn clone(&self) -> SSendResourcesCommand
fn clone(&self) -> SSendResourcesCommand
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SSendResourcesCommand
impl Debug for SSendResourcesCommand
impl Copy for SSendResourcesCommand
Auto Trait Implementations§
impl Freeze for SSendResourcesCommand
impl RefUnwindSafe for SSendResourcesCommand
impl Send for SSendResourcesCommand
impl Sync for SSendResourcesCommand
impl Unpin for SSendResourcesCommand
impl UnwindSafe for SSendResourcesCommand
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more