Dayz 1.25
Dayz Code 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
166 {
168 }
PlayerBase m_SourcePlayer
Definition ActionRestrainTarget.c:162
Definition EntityAI.c:95

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

Методы

◆ CopyOldPropertiesToNew()

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

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

◆ OnSuccess()

override void OnSuccess ( EntityAI new_item)
inlineprivate
171 {
172 super.OnSuccess(new_item);
173
175 {
176 m_PairedExplosive.UnpairRemote();
178 ib.PairWithDevice(m_PairedExplosive);
179 m_PairedExplosive.Arm();
180 }
181
182 // as soon as previous op is finish, start another one
183 EntityAI item_in_hands_source = m_SourcePlayer.GetHumanInventory().GetEntityInHands();
185 {
186 string new_item_name = MiscGameplayFunctions.ObtainRestrainItemTargetClassname(item_in_hands_source);
188 if (m_SourcePlayer)
189 m_SourcePlayer.LocalReplaceItemInHandsWithNewElsewhere(lambda);
190 else
191 Error("ChainedDropAndRestrainLambda: missing source player!");
192 }
193 else
194 {
195 Error("ChainedDropAndRestrainLambda: missing source item in hands!");
196 }
197 }
void RestrainTargetPlayerLambda(EntityAI old_item, string new_item_type, PlayerBase player)
Definition ActionRestrainTarget.c:213
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().


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