pub struct Project { /* private fields */ }
Expand description
Represents a Bevy AI project
Implementations§
Source§impl Project
impl Project
Sourcepub async fn new(project_path: PathBuf, agent: BevyAIAgent) -> Result<Self>
pub async fn new(project_path: PathBuf, agent: BevyAIAgent) -> Result<Self>
Create a new project with AI agent
Sourcepub async fn init(
project_path: PathBuf,
name: &str,
description: &str,
agent: BevyAIAgent,
) -> Result<Self>
pub async fn init( project_path: PathBuf, name: &str, description: &str, agent: BevyAIAgent, ) -> Result<Self>
Initialize a new project
Sourcepub async fn generate_game(&mut self, description: &str) -> Result<AIResponse>
pub async fn generate_game(&mut self, description: &str) -> Result<AIResponse>
Generate game code with AI
Sourcepub async fn add_feature(
&mut self,
feature_description: &str,
) -> Result<AIResponse>
pub async fn add_feature( &mut self, feature_description: &str, ) -> Result<AIResponse>
Add feature with AI
Sourcepub fn manager(&self) -> &ProjectManager
pub fn manager(&self) -> &ProjectManager
Get project manager
Sourcepub fn manager_mut(&mut self) -> &mut ProjectManager
pub fn manager_mut(&mut self) -> &mut ProjectManager
Get mutable project manager
Sourcepub fn agent(&self) -> &BevyAIAgent
pub fn agent(&self) -> &BevyAIAgent
Get AI agent
Auto Trait Implementations§
impl Freeze for Project
impl !RefUnwindSafe for Project
impl Send for Project
impl Sync for Project
impl Unpin for Project
impl !UnwindSafe for Project
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