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

Copy-paste for dynamic attributes #765

Open
Stinkfist0 opened this issue Jun 2, 2014 · 2 comments
Open

Copy-paste for dynamic attributes #765

Stinkfist0 opened this issue Jun 2, 2014 · 2 comments

Comments

@Stinkfist0
Copy link
Contributor

Would be handy.

@antont
Copy link
Member

antont commented Jun 18, 2014

BTW do note that DynamicComponent is kind of(*) deprecated by -- tadaa! -- static components! I mean the new custom component system that Lasse / Ludo made in spring. Defining normal comps from JS.

One benefit of such normal components is that they work normally in the editor, the attrs are readily there etc.

(*)kind of deprecated with the note that sure can be that DCs will also be useful in some case where you actually need the dynamicity -- but I bet in almost all cases what you want is actually just a script-defined static component

@jonnenauha
Copy link
Member

@antont The new stuff is based on DC. Not literally inheriting the class but it uses the same mechanisms of IComponent::IsDynamic() etc. So if this gets implemented using those IComponent properties it will work for both new and old.

DC is not going anywhere either way :) Its very hand to put data in there if you dont have a very structured multi-attribute component.

Edit: The new stuff essentially sends a DC over the network with a associated name and "stamps it out" as a static one, once its declared by the server (can be client initiated too afaik).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants