ArpEngine / ArpDomain

Asset and entity manager for ArpEngine
MIT License
0 stars 0 forks source link

Inline arbitrary definition #29

Open kaikoga opened 5 years ago

kaikoga commented 5 years ago

I think this is blocked by #30

Background

<obj objRefWithSomeWeirdName="ref1" objRefWithOtherWeirdName="ref2">
</obj>

would be inline defined like this

<obj>
  <objRefWithSomeWeirdName value="1" />
  <objRefWithOtherWeirdName value="2" />
</obj>

but this would be cleaner:

<obj objRefWithSomeWeirdName="ref1" objRefWithOtherWeirdName="ref2">
  <obj name="objRefWithSomeWeirdName" value="1" />
  <obj name="objRefWithOtherWeirdName" value="2" />
</obj>

though it is impossible because currently <obj> cannot accept <obj> seed

kaikoga commented 5 years ago

Just allow <data> inside anything?

kaikoga commented 5 years ago

Maybe named anything could be allowed, but we should consider checking slot overwrite

kaikoga commented 4 years ago

Going to low priority, because we can write this:

<data>
  <obj name="@" objRefWithSomeWeirdName="ref1" objRefWithOtherWeirdName="ref2" />
  <obj name="objRefWithSomeWeirdName" value="1" />
  <obj name="objRefWithOtherWeirdName" value="2" />
</data>