DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс CAContinuousCraft
+ Граф наследования:CAContinuousCraft:

Закрытые члены

override void Setup (ActionData action_data)
 
override int Execute (ActionData action_data)
 
override float GetProgress ()
 
- Закрытые члены унаследованные от CAContinuousTime
void CAContinuousTime (float time_to_complete_action)
 
override void Setup (ActionData action_data)
 
override int Execute (ActionData action_data)
 
override int Cancel (ActionData action_data)
 
override float GetProgress ()
 

Дополнительные унаследованные члены

- Закрытые данные унаследованные от CAContinuousTime
float m_LocalTimeElpased
 
float m_TimeElpased
 
float m_AdjustedTimeToComplete
 
float m_DefaultTimeToComplete
 
ref Param1< floatm_SpentUnits
 

Подробное описание

Методы

◆ Execute()

override int Execute ( ActionData action_data)
inlineprivate
35 {
36 if ( !action_data.m_Player )
37 {
38 return UA_ERROR;
39 }
40
42 {
43 m_TimeElpased += action_data.m_Player.GetDeltaT();
44 }
45 else
46 {
47 if ( m_SpentUnits )
48 {
51 }
53 return UA_FINISHED;
54 }
55 return UA_PROCESSING;
56 }
void SetACData(Param units)
Definition CABase.c:40
void OnCompletePogress(ActionData action_data)
Definition CAContinuousBase.c:8
float m_AdjustedTimeToComplete
Definition CAContinuousTime.c:5
ref Param1< float > m_SpentUnits
Definition CAContinuousTime.c:7
float m_TimeElpased
Definition CAContinuousTime.c:4
Definition EntityAI.c:95
const int UA_FINISHED
Definition constants.c:443
const int UA_ERROR
Definition constants.c:462
const int UA_PROCESSING
Definition constants.c:441

Перекрестные ссылки CAContinuousTime::m_AdjustedTimeToComplete, CAContinuousTime::m_SpentUnits, CAContinuousTime::m_TimeElpased, CAContinuousBase::OnCompletePogress(), CABase::SetACData(), UA_ERROR, UA_FINISHED и UA_PROCESSING.

◆ GetProgress()

override float GetProgress ( )
inlineprivate
59 {
61 {
62 //float progress = m_TimeElpased/m_AdjustedTimeToComplete;
64 }
65 return 1;
66 }

Перекрестные ссылки CAContinuousTime::m_AdjustedTimeToComplete и CAContinuousTime::m_TimeElpased.

◆ Setup()

override void Setup ( ActionData action_data)
inlineprivate
4 {
6 m_AdjustedTimeToComplete = 1000; //indication of arror if somting will be craft 1000 sec
7 if ( !m_SpentUnits )
8 {
10 }
11 else
12 {
13 m_SpentUnits.param1 = 0;
14 }
15
17
18 PluginRecipesManager module_recipes_manager;
19 Class.CastTo(module_recipes_manager, GetPlugin(PluginRecipesManager));
21 {
22 m_AdjustedTimeToComplete = module_recipes_manager.GetRecipeLengthInSecs( action_data_wc.m_RecipeID );
23 if( module_recipes_manager.GetIsInstaRecipe( action_data_wc.m_RecipeID) || module_recipes_manager.IsEnableDebugCrafting() )
24 {
26 }
27 float specialty_weight = module_recipes_manager.GetRecipeSpecialty( action_data_wc.m_RecipeID );
29
30 //PrintString("ttc:" + m_AdjustedTimeToComplete.ToString());
31 }
32 }
PluginBase GetPlugin(typename plugin_type)
Definition PluginManager.c:316
Super root of all classes in Enforce script.
Definition EnScript.c:11
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.

Перекрестные ссылки Class::CastTo(), GetPlugin(), CAContinuousTime::m_AdjustedTimeToComplete, CAContinuousTime::m_SpentUnits и CAContinuousTime::m_TimeElpased.


Объявления и описания членов класса находятся в файле: