//----------------------------------------------------------------------------------
        public CNEffectEditor(CNGroup data, CommandNodeEditorState state)
            : base(data, state)
        {
            fxData_     = cnManager.FxData;
            effectData_ = fxData_.effect;

            selectedScopeIdx_ = (int)Data.CaronteFX_scope;
        }
Beispiel #2
0
        //-----------------------------------------------------------------------------------
        public CNServosEditor(CNServos data, CommandNodeEditorState state)
            : base(data, state)
        {
            Data = (CNServos)data;

            if (Data.TargetExternal_LOCAL_NEW == null)
            {
                Data.TargetExternal_LOCAL_NEW = new CarVector3Curve(Data.TargetExternal_LOCAL, cnManager.FxData.effect.totalTime_);
            }
        }
        public CommandNodeEditor(CommandNode data, CommandNodeEditorState state)
        {
            cnManager   = CarManager.Instance;
            cnHierarchy = cnManager.Hierarchy;
            eManager    = cnManager.EntityManager;
            goManager   = cnManager.GOManager;

            Data   = data;
            state_ = state;

            styleTitle.fontSize  = 20;
            styleTitle.fontStyle = FontStyle.Bold;
            styleTitle.alignment = TextAnchor.LowerLeft;
        }
Beispiel #4
0
        public CNScriptPlayerEditor(CNScriptPlayer data, CommandNodeEditorState state)
            : base(data, state)
        {
            Data = (CNScriptPlayer)data;

            Assembly editorAssembly = GetEditorAssembly();

            // Get all classes derived from CRSimulationScript
            simulationScriptTypes_ = (from t in editorAssembly.GetTypes()
                                      where t.IsSubclassOf(typeof(CarSimulationScript))
                                      select t).ToArray();

            simulationScriptNames_ = new string[simulationScriptTypes_.Length];

            for (int i = 0; i < simulationScriptTypes_.Length; i++)
            {
                simulationScriptNames_[i] = simulationScriptTypes_[i].Name;
            }

            RefreshSimulationScript();
        }
 public CNSpeedLimiterEditor(CNSpeedLimiter data, CommandNodeEditorState state)
     : base(data, state)
 {
     Data = data;
 }
Beispiel #6
0
 public CNMeshToolEditor(CNMonoField data, CommandNodeEditorState state)
     : base(data, state)
 {
 }
Beispiel #7
0
 //-----------------------------------------------------------------------------------
 public CNServosEditor(CNServos data, CommandNodeEditorState state)
     : base(data, state)
 {
     Data = (CNServos)data;
 }
Beispiel #8
0
 public CNTessellatorEditor(CNTessellator data, CommandNodeEditorState state)
     : base(data, state)
 {
     Data = (CNTessellator)data;
 }
Beispiel #9
0
 public CNTriggerByContactEditor(CNTriggerByContact data, CommandNodeEditorState state)
     : base(data, state)
 {
     Data = (CNTriggerByContact)data;
 }
Beispiel #10
0
 public CNJetEditor(CNJet data, CommandNodeEditorState state)
     : base(data, state)
 {
     Data = data;
 }
 public CNContactEmitterEditor(CNContactEmitter data, CommandNodeEditorState state)
     : base(data, state)
 {
     Data = (CNContactEmitter)data;
 }
 public CNFractureEditor(CNFracture data, CommandNodeEditorState state)
     : base(data, state)
 {
     Data = (CNFracture)data;
 }
 public CNHelperMeshEditor(CNHelperMesh data, CommandNodeEditorState state)
     : base(data, state)
 {
     Data = (CNHelperMesh)data;
 }
 public CNGroupEditor(CNGroup data, CommandNodeEditorState state)
     : base(data, state)
 {
     Data = (CNGroup)data;
 }
 public CNBalltreeGeneratorEditor(CNBalltreeGenerator data, CommandNodeEditorState state)
     : base(data, state)
 {
     Data = (CNBalltreeGenerator)data;
 }
Beispiel #16
0
 public CNAimedFallEditor(CNAimedFall data, CommandNodeEditorState state)
     : base(data, state)
 {
     Data = (CNAimedFall)data;
 }
 public CNParameterModifierEditor(CNParameterModifier data, CommandNodeEditorState state)
     : base(data, state)
 {
     Data = (CNParameterModifier)data;
 }
 //-----------------------------------------------------------------------------------
 public CNJointGroupsEditor(CNJointGroups data, CommandNodeEditorState state)
     : base(data, state)
 {
     Data = (CNJointGroups)data;
 }
 public CNTriggerByExplosionEditor(CNTriggerByExplosion data, CommandNodeEditorState state)
     : base(data, state)
 {
     Data = (CNTriggerByExplosion)data;
 }
 public CNSelectorEditor(CNSelector data, CommandNodeEditorState state)
     : base(data, state)
 {
     Data = (CNSelector)data;
 }
Beispiel #21
0
 public CNSubstituterEditor(CNSubstituter data, CommandNodeEditorState state)
     : base(data, state)
 {
     Data = (CNSubstituter)data;
 }
 public CNMonoFieldEditor(CNMonoField data, CommandNodeEditorState state)
     : base(data, state)
 {
     Data = (CNMonoField)data;
 }
 public CNAimedForceEditor(CNAimedForce data, CommandNodeEditorState state)
     : base(data, state)
 {
     Data = (CNAimedForce)data;
 }
 public CNTriggerByForceEditor(CNTriggerByForce data, CommandNodeEditorState state)
     : base(data, state)
 {
     Data = (CNTriggerByForce)data;
 }
 public CNEntityEditor(CNEntity data, CommandNodeEditorState state)
     : base(data, state)
 {
     Data = (CNEntity)data;
 }
Beispiel #26
0
 public CNEffectExtendedEditor(CNGroup data, CommandNodeEditorState state)
     : base(data, state)
 {
 }
Beispiel #27
0
 public CNTriggerEditor(CNTrigger data, CommandNodeEditorState state)
     : base(data, state)
 {
 }
Beispiel #28
0
 //-----------------------------------------------------------------------------------
 public CNRigidGlueEditor(CNJointGroups data, CommandNodeEditorState state)
     : base(data, state)
 {
 }
Beispiel #29
0
 public CNWelderEditor(CNWelder data, CommandNodeEditorState state)
     : base(data, state)
 {
     Data = (CNWelder)data;
 }
 public CNTriggerByDetectorEditor(CNTriggerByDetector data, CommandNodeEditorState state)
     : base(data, state)
 {
     Data = (CNTriggerByDetector)data;
 }