Skip to content
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 component system #179

Merged
merged 17 commits into from
May 16, 2022
Merged

Conversation

hyv1001
Copy link
Collaborator

@hyv1001 hyv1001 commented May 15, 2022

  • store components data in objects instead of individual files
  • remove useless component files
  • move component editor tick property into g_editor_tick_component_types
  • load components from instanced data firstly, then load from the definition
  • transform as the normal instanced component
  • add postLoadResource interface for component loading

hyv1001 added 13 commits May 13, 2022 20:14
… individual files

add comments for relfection code

add new components instance

add postLoad for resource

Fix wall object

update object asset

postLoad resource for component

rename new_components to be components

remove redunt logic in object

refactor level asset: using instanced component for transform

fix transform and rigidbody post loaded

remove useless files
@hyv1001 hyv1001 self-assigned this May 15, 2022
@hyv1001 hyv1001 requested a review from Ol6rin May 15, 2022 05:34
@hyv1001 hyv1001 merged commit 882b377 into BoomingTech:main May 16, 2022
"asset/objects/character/player/components/animation/data/anim.skeleton_map.json"
],
"blend_clip_file_length": [
0.76666998863220215
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like saved from editor? the value changed due to rounding methods

"controller_config": {
"$context": {
"capsule_shape": {
"half_height": 0.69999998807907104,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same rounding problem here

}
}
},
"$typeName": "TransformComponent"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the purpose of TransformComponent in object definition

@hyv1001 hyv1001 mentioned this pull request May 18, 2022
@hyv1001 hyv1001 deleted the refactor-component-system branch May 22, 2022 12:59
KaygNas pushed a commit to KaygNas/Piccolo that referenced this pull request Feb 10, 2023
- store components data in objects instead of individual files
- remove useless component files
- move component editor tick property into `g_editor_tick_component_types`
- load components from instanced data firstly, then load from the definition
- transform as the normal instanced component 
- add `postLoadResource` interface for component loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants