Both sides previous revision Previous revision | Last revision Both sides next revision | ||
hpl3:engine:entities [2013/10/08 13:01] ian.thomas Typo |
hpl3:engine:entities [2013/10/08 13:03] ian.thomas Typo |
||
---|---|---|---|
Line 13: | Line 13: | ||
- | In order to specify a type it first needs to be added to ''"config/EntityTypes.cfg"'' under the basic game type is should used (Prop, Agent, etc). Here the name (used as an identfier), the script file, the class name (refering to the main class in the script file) and if it is forced to have full game save (if all data is always saved) is specified. Then the editor must also know about this type and do do this ''"edtitor/EntityClasses.def"'' needs to be updated with the type's [[:hpl3:engine:entities|variables]]. Once this is done, the type is ready to be used in game and editor. | + | In order to specify a type it first needs to be added to ''"config/EntityTypes.cfg"'' under the basic game type is should used (Prop, Agent, etc). Here the name (used as an identfier), the script file, the class name (refering to the main class in the script file) and if it is forced to have full game save (if all data is always saved) is specified. Then the editor must also know about this type and do do this ''"editor/EntityClasses.def"'' needs to be updated with the type's [[:hpl3:engine:entities|variables]]. Once this is done, the type is ready to be used in game and editor. |