Trait csflow::traits::BaseEntity

source ·
pub trait BaseEntity {
    // Required methods
    fn from_index(
        ctx: &mut CheatCtx,
        entity_list: Address,
        index: i32
    ) -> Result<Option<Self>, Error>
       where Self: Sized;
    fn pos(&self, ctx: &mut CheatCtx) -> Result<Vec3, Error>;
    fn class_name(&self, ctx: &mut CheatCtx) -> Result<String, Error>;
}
Expand description

A trait for basic functions from C_BaseEntity CCSPlayerController inherits C_BaseEntity, which is why this trait exists.

Required Methods§

source

fn from_index( ctx: &mut CheatCtx, entity_list: Address, index: i32 ) -> Result<Option<Self>, Error>where Self: Sized,

source

fn pos(&self, ctx: &mut CheatCtx) -> Result<Vec3, Error>

source

fn class_name(&self, ctx: &mut CheatCtx) -> Result<String, Error>

Implementors§