fix: eliminate redraws on position changes
This commit is contained in:
parent
5fcd49e847
commit
b361460485
4 changed files with 235 additions and 176 deletions
|
|
@ -1772,7 +1772,7 @@ pub struct ChannelMember {
|
|||
}
|
||||
|
||||
/// Channel member with user info for display.
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
|
||||
#[cfg_attr(feature = "ssr", derive(sqlx::FromRow))]
|
||||
pub struct ChannelMemberInfo {
|
||||
pub id: Uuid,
|
||||
|
|
@ -1814,7 +1814,7 @@ pub struct UpdateEmotionRequest {
|
|||
|
||||
/// Data needed to render an avatar's current appearance.
|
||||
/// Contains the asset paths for all equipped props.
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
|
||||
pub struct AvatarRenderData {
|
||||
pub avatar_id: Uuid,
|
||||
pub current_emotion: i16,
|
||||
|
|
@ -1842,7 +1842,7 @@ impl Default for AvatarRenderData {
|
|||
}
|
||||
|
||||
/// Channel member with full avatar render data.
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
|
||||
pub struct ChannelMemberWithAvatar {
|
||||
pub member: ChannelMemberInfo,
|
||||
pub avatar: AvatarRenderData,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue