Re: Reflection in game engine (c++)

Mike Acton <[email protected]> Thu, 14 Mar 2013 18:20:12 -0700
Newsgroups gmane.games.devel.sweng
Message-ID <CAGxtOJb2kX20ieGV+-nufAVNOfSGP4it0GUZHrdOKyhSgG=r3w@mail.gmail.com>
--===============0523236124==
Content-Type: multipart/alternative; boundary=bcaec5216179e421da04d7ec70fb

--bcaec5216179e421da04d7ec70fb
Content-Type: text/plain; charset=ISO-8859-1

*5) create serializable/reflected classes in a data format, then run a tool
that generates headers and cpps*

I'm mostly a fan of #5 (...and don't think it that crazy.) Sandbox off the
problem and solve it as it's own problem rather than deeply mixed into
other problems (e.g. code building)

Our solution shares a lot of similarities with protocol buffers (
https://code.google.com/p/protobuf/) as you'd probably expect.
DDL that generates a JSON schema (for UI mostly) and code (for concrete
structures in-game and tools) that does serialization and all that stuff.
We have a variety of different compilers for different things we might want
to generate. You can check out the core of it here if you're interested:
https://github.com/macton/DDLParser/

Mike.

--bcaec5216179e421da04d7ec70fb
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<span style=3D"color:rgb(34,34,34);font-family:arial,sans-serif;font-size:1=
3px;background-color:rgb(255,255,255)"><i>5) create serializable/reflected =
classes in a data format, then run a tool that generates headers and cpps</=
i></span><div>
<span style=3D"color:rgb(34,34,34);font-family:arial,sans-serif;font-size:1=
3px;background-color:rgb(255,255,255)"><br></span></div><div><span style=3D=
"color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background=
-color:rgb(255,255,255)">I&#39;m mostly a fan of #5 (...and don&#39;t think=
 it that crazy.) Sandbox off the problem and solve it as it&#39;s own probl=
em rather than deeply mixed into other problems (e.g. code building)=A0</sp=
an></div>
<div><span style=3D"color:rgb(34,34,34);font-family:arial,sans-serif;font-s=
ize:13px;background-color:rgb(255,255,255)"><br></span></div><div><span sty=
le=3D"color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;backg=
round-color:rgb(255,255,255)">Our solution shares a lot of similarities wit=
h protocol buffers (</span><a href=3D"https://code.google.com/p/protobuf/">=
https://code.google.com/p/protobuf/</a>) as you&#39;d probably expect.</div=
>
<div>DDL that generates a JSON schema (for UI mostly) and code (for concret=
e structures in-game and tools) that does serialization and all that stuff.=
 We have a variety of different compilers for different things we might wan=
t to generate. You can check out the core of it here if you&#39;re interest=
ed:=A0<a href=3D"https://github.com/macton/DDLParser/">https://github.com/m=
acton/DDLParser/</a>=A0</div>
<div><br></div><div>Mike.</div>

--bcaec5216179e421da04d7ec70fb--

--===============0523236124==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Sweng-Gamedev mailing list
[email protected]
http://lists.midnightryder.com/listinfo.cgi/sweng-gamedev-midnightryder.com

--===============0523236124==--