From ba55f1bbf627594f91a7e72706655bb71dca4db4 Mon Sep 17 00:00:00 2001 From: spog Date: Sun, 9 Apr 2006 15:04:41 +0000 Subject: [PATCH] added documentation of .ent format git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@43 8a3a26a2-13c4-0310-b231-cf6edde360e5 --- radiant/eclass_xml.cpp | 86 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) diff --git a/radiant/eclass_xml.cpp b/radiant/eclass_xml.cpp index da23faa6..aeaca03c 100644 --- a/radiant/eclass_xml.cpp +++ b/radiant/eclass_xml.cpp @@ -19,6 +19,92 @@ along with GtkRadiant; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +///\file +///\brief EntityClass plugin that supports the .ent xml entity-definition format. +/// +/// the .ent xml format expresses entity-definitions. +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// the attributes of an entity type are defined like this: +/// +/// <[name of attribute type] +/// key="[entity key name]" +/// name="[name shown in gui]" +/// value="[default entity key value]" +/// >[comment text shown in gui] +/// +/// each attribute type has a specialised attribute-editor GUI +/// +/// currently-supported attribute types: +/// +/// string a string +/// array an array of strings - value is a semi-colon-delimited string +/// integer an integer value +/// boolean an integer - shows as a checkbox - true = non-zero +/// integer2 two integer values +/// integer3 three integer values +/// real3 three floating-point values +/// angle specialisation of real - Yaw angle +/// direction specialisation of real - Yaw angle, -1 = down, -2 = up +/// angles specialisation of real3 - Pitch Yaw Roll +/// color specialisation of real3 - RGB floating-point colour +/// target a string that uniquely identifies an entity or group of entities +/// targetname a string that uniquely identifies an entity or group of entities +/// sound the VFS path to a sound file +/// texture the VFS path to a texture file or a shader name +/// model the VFS path to a model file +/// skin the VFS path to a skin file +/// +/// +/// flag attributes define a flag in the spawnflags key: +/// +/// [comment text shown in gui] +/// +/// the default value for a flag bit is always 0. +/// +/// +/// List attributes have a set of valid values. +/// Create new list attribute types like this: +/// +/// +/// +/// +/// +/// +/// these can then be used as attribute types. +/// +/// +/// An attribute definition should specify a default value that corresponds +/// with the default value given by the game. If the default value is not +/// specified in the attribute definition, it is assumed to be an empty string. +/// +/// If the currently-selected entity in Radiant does not specify a value for +/// the key of an attribute, the default value from the attribute-definition +/// will be displayed in the attribute-editor and used when visualising the +/// entity in the preview windows. E.g. the Doom3 "light" entity has a +/// "light_radius" key. Light entities without a "light_radius" key are +/// displayed in Doom3 with a radius of 300. The default value for the +/// "light_radius" attribute definition should be specified as "300 300 300". +/// + + + + #include "eclass_xml.h" #include "ieclass.h" -- 2.39.2