base class for transformation operations (creating one item from another)
More...
base class for transformation operations (creating one item from another)
Definition at line 4 of file replaceitemwithnewlambdabase.c.
◆ CanExecuteLambda()
| bool ReplaceItemWithNewLambdaBase::CanExecuteLambda |
( |
| ) |
|
|
protected |
◆ CopyOldPropertiesToNew()
| void ReplaceItemWithNewLambdaBase::CopyOldPropertiesToNew |
( |
notnull EntityAI | old_item, |
|
|
EntityAI | new_item ) |
|
protected |
Step E. copy properties from old object to the created one.
@NOTE: This is supposed to be overriden in derived classes
Definition at line 185 of file replaceitemwithnewlambdabase.c.
◆ CreateNetworkObjectInfo()
| void ReplaceItemWithNewLambdaBase::CreateNetworkObjectInfo |
( |
EntityAI | new_item | ) |
|
|
protected |
Step G. - create NetworkObjectInfo for new item.
@NOTE: new_item can be null if the lambda did not create any item (intentionaly)
Definition at line 204 of file replaceitemwithnewlambdabase.c.
◆ CreateNewEntity()
| EntityAI ReplaceItemWithNewLambdaBase::CreateNewEntity |
( |
| ) |
|
|
protected |
Step D. - create new entity (LOCAL) with specified type.
@NOTE: if (!m_NewLocation || m_NewItemType.Empty) ==> this function does not create a new entity
Definition at line 123 of file replaceitemwithnewlambdabase.c.
◆ DeleteOldEntity()
| void ReplaceItemWithNewLambdaBase::DeleteOldEntity |
( |
| ) |
|
|
protected |
◆ DumpToString()
| string ReplaceItemWithNewLambdaBase::DumpToString |
( |
| ) |
|
|
protected |
◆ Execute()
◆ OnAbort()
| void ReplaceItemWithNewLambdaBase::OnAbort |
( |
| ) |
|
|
protected |
Step Out - notification on abort.
@NOTE: new_item can be null if the lambda did not create any item (intentionaly)
Definition at line 226 of file replaceitemwithnewlambdabase.c.
◆ OnSuccess()
| void ReplaceItemWithNewLambdaBase::OnSuccess |
( |
EntityAI | new_item | ) |
|
|
protected |
Step H. - notification on finish.
@NOTE: new_item can be null if the lambda did not create any item (intentionaly)
Definition at line 216 of file replaceitemwithnewlambdabase.c.
◆ PrepareLocations()
| bool ReplaceItemWithNewLambdaBase::PrepareLocations |
( |
| ) |
|
|
protected |
◆ RemoveNetworkObjectInfo()
| void ReplaceItemWithNewLambdaBase::RemoveNetworkObjectInfo |
( |
| ) |
|
|
protected |
Step C. - remove network part of the object @NOTE this operation does not delete the object, only removes its network part (and deletes it on client)
Definition at line 107 of file replaceitemwithnewlambdabase.c.
◆ RemoveOldItemFromLocation()
| void ReplaceItemWithNewLambdaBase::RemoveOldItemFromLocation |
( |
| ) |
|
|
protected |
Step B. - free location for new item @NOTE this operation does not delete the object, only removes it from inventory location.
Definition at line 86 of file replaceitemwithnewlambdabase.c.
◆ UndoRemoveNetworkObjectInfo()
| void ReplaceItemWithNewLambdaBase::UndoRemoveNetworkObjectInfo |
( |
| ) |
|
|
protected |
◆ UndoRemoveOldItemFromLocation()
| void ReplaceItemWithNewLambdaBase::UndoRemoveOldItemFromLocation |
( |
| ) |
|
|
protected |
◆ WantCreateNewEntity()
| bool ReplaceItemWithNewLambdaBase::WantCreateNewEntity |
( |
| ) |
|
|
protected |
◆ m_NewLocation
◆ m_OldLocation
◆ m_RemoveFromLocationPassed
| bool ReplaceItemWithNewLambdaBase::m_RemoveFromLocationPassed = false |
|
protected |
The documentation for this class was generated from the following file: