-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: entity data acquisition and types #241
refactor: entity data acquisition and types #241
Conversation
…acquisition-and-types
Can we use this PR to add the following base wearables? I can open another one anyway. But to avoid conflicts.
|
Review: chat.gd var avatar = Global.avatars.get_avatar_by_address(address)
var avatar_name = (
avatar.avatar_name if avatar != null else DclEther.shorten_eth_address(address)
)
Repro steps: Go to Genesis Plaza and wait to receive a message |
Review: explorer.gd panel_chat.on_chats_arrived(
[[player.avatar.avatar_id, player.avatar.avatar_name, 0, message]]
)
Repro steps: Go to Genesis Plaza and try to talk |
} | ||
|
||
#[func] | ||
fn get_thumbnail(&self) -> GString { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fn get_thumbnail(&self) -> GString { | |
fn get_thumbnail_url(&self) -> GString { |
better?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually, I think is the hash, it directly holds the name of the property, I'd leave it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great!
fix typo
What?
Move core types from generic dictionaries to well-known types.
In the case
DclUserProfile
, methodsfrom_godot_dictionary
andto_godot_dictionary
are remained for storing purporseThe previous step was done in the
UserProfile
but instead of being modified directly, a Dictionary wrapper was used in the GDScript code.