Skip to content

v2.2.0 - 健全更新 Health Update

Choose a tag to compare

@ChepleBob30 ChepleBob30 released this 25 Oct 06:07
· 28 commits to main since this release
  • 完善了部分结构体的创建方法。
  • RustConstructorResource现已支持Debug。
  • 现在RustConstructorResource的方法reg_render_resource可以自动实现。
  • RustConstructorResource扩展了as_any和as_any_mut两个方法,用于类型转换。
  • 现在Image和ImageTexture也实现了Debug。
  • 新增DebugTextureHandle结构体,用于为ImageTexture实现Debug。
  • RustConstructorError现已实现Display和Error,并增加了两个新错误类型:ImageTextureNotFound和RectNotFound。
  • 现在App中的字段page和vertrefresh被重命名为current_page和tick_interval。
  • 现在rust_constructor_resource的存储内容变为Vec<Box<dyn RustConstructorResource>>。
  • 大范围完善了错误处理。
  • 移除了get_resource_index。
  • 添加get_resource和get_resource_mut方法,可以直接从列表中抓取资源并进行操作。
  • 添加了replace_resource和replace_resource_custom方法,可以从列表中替代指定资源。
  • 对大量方法进行修改以适应新的存储方式。
  • 添加problem_report_custom方法,用于自定义问题推送列表。
  • 移除了一些与Rust Constructor关联性不大的函数及方法。

  • Improved creation methods for some structs.
  • RustConstructorResource now supports Debug.
  • The reg_render_resource method of RustConstructorResource can now be automatically implemented.
  • RustConstructorResource extends two methods as_any and as_any_mut for type conversion.
  • Image and ImageTexture now implement Debug.
  • Added DebugTextureHandle struct to implement Debug for ImageTexture.
  • RustConstructorError now implements Display and Error, and added two new error types: ImageTextureNotFound and RectNotFound.
  • Fields page and vertrefresh in App are now renamed to current_page and tick_interval.
  • The storage content of rust_constructor_resource is now Vec<Box<dyn RustConstructorResource>>.
  • Extensively improved error handling.
  • Removed get_resource_index.
  • Added get_resource and get_resource_mut methods to directly fetch resources from the list and operate on them.
  • Added replace_resource and replace_resource_custom methods to replace specified resources from the list.
  • Modified many methods to adapt to the new storage approach.
  • Added problem_report_custom method for custom problem reporting lists.
  • Removed some functions and methods with low relevance to Rust Constructor.