![]() |
Dawn of Light - Class documentation 2900
This is the Dawn of Light project
|
The class holding all salvage functions. More...
Static Public Member Functions | |
| static int | BeginWork (GamePlayer player, InventoryItem item) |
| Begin salvaging an inventory item. | |
| static int | BeginWork (GamePlayer player, GameSiegeWeapon siegeWeapon) |
| Begin salvaging a siege weapon. | |
| static bool | IsAllowedToBeginWork (GamePlayer player, InventoryItem item) |
| Check if the player can begin to salvage an item. | |
| static int | GetCountForSalvage (InventoryItem item, SalvageYield salvage, ItemTemplate rawMaterial) |
| Calculate the count per Object_Type. | |
| static int | GetMaterialYield (GamePlayer player, InventoryItem item, SalvageYield salvageYield, ItemTemplate rawMaterial) |
| Return the material yield for this salvage. | |
Static Protected Member Functions | |
| static int | Proceed (RegionTimer timer) |
| Called when craft time is finished. | |
Protected Attributes | |
| const string | SALVAGE_YIELD = "SALVAGE_YIELD" |
| The SalvageYield entry for the item being salvaged. | |
| const string | SALVAGED_ITEM = "SALVAGED_ITEM" |
| The item being salvaged. | |
Static Protected Attributes | |
| static readonly ILog | log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType) |
| Defines a logger for this class. | |
The class holding all salvage functions.
| static int DOL.GS.Salvage.BeginWork | ( | GamePlayer | player, |
| InventoryItem | item | ||
| ) | [static] |
Begin salvaging an inventory item.
| item | |
| player |
| static int DOL.GS.Salvage.BeginWork | ( | GamePlayer | player, |
| GameSiegeWeapon | siegeWeapon | ||
| ) | [static] |
Begin salvaging a siege weapon.
| player | |
| siegeWeapon |
| static int DOL.GS.Salvage.GetCountForSalvage | ( | InventoryItem | item, |
| SalvageYield | salvage, | ||
| ItemTemplate | rawMaterial | ||
| ) | [static] |
Calculate the count per Object_Type.
| static int DOL.GS.Salvage.GetMaterialYield | ( | GamePlayer | player, |
| InventoryItem | item, | ||
| SalvageYield | salvageYield, | ||
| ItemTemplate | rawMaterial | ||
| ) | [static] |
Return the material yield for this salvage.
| static bool DOL.GS.Salvage.IsAllowedToBeginWork | ( | GamePlayer | player, |
| InventoryItem | item | ||
| ) | [static] |
Check if the player can begin to salvage an item.
| player | |
| item |
| static int DOL.GS.Salvage.Proceed | ( | RegionTimer | timer | ) | [static, protected] |
Called when craft time is finished.
| timer |
readonly ILog DOL.GS.Salvage.log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType) [static, protected] |
Defines a logger for this class.
const string DOL.GS.Salvage.SALVAGE_YIELD = "SALVAGE_YIELD" [protected] |
The SalvageYield entry for the item being salvaged.
const string DOL.GS.Salvage.SALVAGED_ITEM = "SALVAGED_ITEM" [protected] |
The item being salvaged.