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

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

void ChainedDropAndRestrainLambda (EntityAI old_item, string new_item_type, PlayerBase player, bool destroy=false, PlayerBase src_player=null)
 
override void OnSuccess (EntityAI new_item)
 
override void CopyOldPropertiesToNew (notnull EntityAI old_item, EntityAI new_item)
 
- Закрытые члены унаследованные от DestroyItemInCorpsesHandsAndCreateNewOnGndLambda
override void RemoveOldItemFromLocation ()
 

Закрытые данные

PlayerBase m_SourcePlayer
 
ExplosivesBase m_PairedExplosive
 

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

Конструктор(ы)

◆ ChainedDropAndRestrainLambda()

void ChainedDropAndRestrainLambda ( EntityAI old_item,
string new_item_type,
PlayerBase player,
bool destroy = false,
PlayerBase src_player = null )
inlineprivate
165 {
167 }
PlayerBase m_SourcePlayer
Definition ActionRestrainTarget.c:161
Definition EntityAI.c:95

Перекрестные ссылки m_SourcePlayer.

Методы

◆ CopyOldPropertiesToNew()

override void CopyOldPropertiesToNew ( notnull EntityAI old_item,
EntityAI new_item )
inlineprivate
199 {
200 super.CopyOldPropertiesToNew(old_item, new_item);
202 if (trigger)
203 m_PairedExplosive = ExplosivesBase.Cast(trigger.GetControlledDevice());
204 }
ExplosivesBase m_PairedExplosive
Definition ActionRestrainTarget.c:162
Definition RemoteDetonator.c:47

Перекрестные ссылки m_PairedExplosive.

◆ OnSuccess()

override void OnSuccess ( EntityAI new_item)
inlineprivate
170 {
171 super.OnSuccess(new_item);
172
174 {
175 m_PairedExplosive.UnpairRemote();
177 ib.PairWithDevice(m_PairedExplosive);
178 m_PairedExplosive.Arm();
179 }
180
181 // as soon as previous op is finish, start another one
182 EntityAI item_in_hands_source = m_SourcePlayer.GetHumanInventory().GetEntityInHands();
184 {
185 string new_item_name = MiscGameplayFunctions.ObtainRestrainItemTargetClassname(item_in_hands_source);
187 if (m_SourcePlayer)
188 m_SourcePlayer.LocalReplaceItemInHandsWithNewElsewhere(lambda);
189 else
190 Error("ChainedDropAndRestrainLambda: missing source player!");
191 }
192 else
193 {
194 Error("ChainedDropAndRestrainLambda: missing source item in hands!");
195 }
196 }
void RestrainTargetPlayerLambda(EntityAI old_item, string new_item_type, PlayerBase player)
Definition ActionRestrainTarget.c:212
DayZPlayer m_Player
Definition Hand_Events.c:42
Definition Building.c:6
Definition InventoryItem.c:731
void Error(string err)
Messagebox with error message.
Definition EnDebug.c:90

Перекрестные ссылки Error(), m_PairedExplosive, m_Player, m_SourcePlayer и RestrainTargetPlayerLambda().

Поля

◆ m_PairedExplosive

ExplosivesBase m_PairedExplosive
private

Используется в CopyOldPropertiesToNew() и OnSuccess().

◆ m_SourcePlayer

PlayerBase m_SourcePlayer
private

Используется в ChainedDropAndRestrainLambda() и OnSuccess().


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