mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 11:43:49 +00:00
fill in the validated variables
This commit is contained in:
parent
fa760fa746
commit
f633ef3a3d
184 changed files with 1359 additions and 1216 deletions
|
|
@ -31,6 +31,7 @@
|
|||
#include "T3D/projectile.h"
|
||||
|
||||
#include "afx/ce/afxMachineGun.h"
|
||||
#include "console/typeValidators.h"
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~~//
|
||||
// afxMachineGunData
|
||||
|
|
@ -68,7 +69,7 @@ void afxMachineGunData::initPersistFields()
|
|||
docsURL;
|
||||
addField("projectile", TYPEID<ProjectileData>(), myOffset(projectile_data),
|
||||
"A ProjectileData datablock describing the projectile to be launched.");
|
||||
addField("roundsPerMinute", TypeS32, myOffset(rounds_per_minute),
|
||||
addFieldV("roundsPerMinute", TypeRangedS32, myOffset(rounds_per_minute), &CommonValidators::PositiveInt,
|
||||
"Specifies the number of projectiles fired over a minute of time. A value of 1200 "
|
||||
"will create 20 projectiles per second.\n"
|
||||
"Sample values for real machine guns:\n"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue