coding conventions

Release and discuss things you've made, including mods.
freem
Dretch
Posts: 58
Joined: Mon Feb 11, 2013 1:02 pm UTC

coding conventions

Postby freem » Fri May 31, 2013 11:59 pm UTC

I am opening this thread to ask around there is someone have some knowledge about code conventions used in unv, which are not currently in the wiki.

I started to actualize that page, because when I first found it it only had the small passage speaking about the good number of '='...

What I would like to know to complete it is informations like "why are the files name prefixed with g_ or bg_", "what does means the g_someStuff (the prefix, again, but not only if someone have some other general informations)" or some description of folders. Those are only examples.
User avatar
Viech
Project Head
Posts: 2137
Joined: Fri Aug 03, 2012 11:50 pm UTC
Location: Berlin

Re: coding conventions

Postby Viech » Sat Jun 01, 2013 12:15 am UTC

I know these prefixes:

[table="width: 500"]
[tr]
[td]g [/td]
[td]game (server side VM)[/td]
[/tr]
[tr]
[td]cg[/td]
[td]c(lient )game (client side VM)[/td]
[/tr]
[tr]
[td]ui[/td]
[td]user interface VM[/td]
[/tr]
[tr]
[td]bg[/td]
[td]both "games" (actually all three VM's: g, cg, ui)[/td]
[/tr]
[tr]
[td]sv[/td]
[td]server[/td]
[/tr]
[tr]
[td]cl[/td]
[td]client[/td]
[/tr]
[tr]
[td]snd[/td]
[td]sound[/td]
[/tr]
[tr]
[td]tr[/td]
[td]renderer (don't know what it stands for, cvar prefix is just »r«)[/td]
[/tr]
[tr]
[td]bot[/td]
[td]I'm not telling[/td]
[/tr]
[/table]

I assume they are used to fake namsepaces.
Responsible for: Arch Linux package & torrent distribution, Parpax (map), Chameleon (map texture editor), Sloth (material file generator), gameplay design & programming, artistic direction
User avatar
Ishq
Project Head
Posts: 1138
Joined: Tue Mar 06, 2012 8:32 pm UTC

Re: coding conventions

Postby Ishq » Sat Jun 01, 2013 6:48 am UTC

Viech wrote:I know these prefixes:

[table="width: 500"]
[tr]
[td]bot[/td]
[td]I'm not telling[/td]
[/tr]
[/table]


Ugh! I can't figure it out!

Return to “Community Development”

Who is online

Users browsing this forum: No registered users and 4 guests