Shared.Helpers.MoneyHelper
Type JSONpublic class in Shared.Helpers
Type metadata
- Assembly
Shared - Namespace
Shared.Helpers - Base type
System.Object - Hash
8EB023F33E1213F5EC8B6FC07D7516BC576624AD4223115AC5C3801ACFB718A8
Relationships
Base type
System.Object
Methods
CreateCoinsArrayForMoney
#
public System.Void CreateCoinsArrayForMoney(System.UInt64 money, System.Span<System.Int32> outArray)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
2D4016475C175B00F670202BBFD9C91A6637513C23B81B4AF99CB27415370DFD - Body hash
8110A3D1872F3D999B72F4F06FA5BEE6D5CBE8C1D8EA9A2407AB62317DDAB01B - IL size29
Referenced calls
System.Span<System.Int32>::get_Item(System.Int32)Shared.Helpers.MoneyHelper::GetIntValueForCoin(System.UInt64, System.Int32)
GetCoinAmountForMoney
#
public System.Int32 GetCoinAmountForMoney(System.UInt64 money, System.Int32 coinIndex)
Method metadata
- Visibilitypublic
- Return type
System.Int32 - StaticTrue
- VirtualFalse
- Hash
F4C2F261BF74CE0459016B3A8496860B7999467ED6843975065A5C78690BAC61 - Body hash
91F2322789A89D88E9093387076C95EED21B79CC7E04E7828FB8A0C81363278F - IL size108
Referenced calls
System.Exception::.ctor(System.String)System.ArgumentOutOfRangeException::.ctor()
String literals
This should not be possible.
GetCoinIcon
#
public System.String GetCoinIcon(System.Int32 coinType)
Method metadata
- Visibilitypublic
- Return type
System.String - StaticTrue
- VirtualFalse
- Hash
DF0A0A2765301B2E6B6D818CE5F7DB86E4BB0F7CC3DAA32F22F986F274AA7C41 - Body hash
1936FA697407EDA2ABC9BEED5A1BBA3F12781FC5D8C7848E68795E51C4FACA4D - IL size69
Referenced calls
System.ArgumentException::.ctor(System.String)
String literals
moneymoney:1money:2money:3GetCoinIcon: Invalid coin type
GetCoinItemId
#
public System.String GetCoinItemId(System.Int32 coinType)
Method metadata
- Visibilitypublic
- Return type
System.String - StaticTrue
- VirtualFalse
- Hash
B18CABF715B8228E86C01D117E6C4E9A90614264A60D521CC4E4854BE1309DD0 - Body hash
A7E9EB193FCD78AEA878C7902454CEAF557DE3AECC16BA8CA99E10FF72E6AF4C - IL size69
Referenced calls
System.ArgumentException::.ctor(System.String)
Called by
CandideServer.ServerManagers.SimpleInventoryServerManager::TryDropMoneyCandide.CandideUI.UserControls.PlayerInventoryUserControl::OnMoneyRightClickFuncShared.Inventory.InventoryApplyEngine::SplitMoneyItemIntoNewMoneyItemShared.Inventory.InventoryApplyEngine::TurnMoneyIntoItemShared.Inventory.InventoryApplyEngine::TurnMoneyIntoItemStackAmountShared.Inventory.InventoryDeltaEngine::MoveCoinTypeIntoItemsShared.Inventory.InventoryDeltaEngine::MoveMoneyIntoItemShared.Inventory.InventoryDeltaEngine::MoveMoneyItemsIntoMoney_CoinShared.Inventory.Models.DeltaTransaction::MoveMoney_ReturnRest
String literals
moneymoney:1money:2money:3GetCoinItemId: Invalid coin type
GetCoinType
#
public System.Int32 GetCoinType(System.String dataId)
Method metadata
- Visibilitypublic
- Return type
System.Int32 - StaticTrue
- VirtualFalse
- Hash
C2BAB87F6A8FD7E21CD0673F2E26044CF700CED152880E6443452B7E1D1CD6DA - Body hash
46095C4D87668CB1CDF1D2AA4BBBB3002D1498F36E4293AE72422F98B0AD6D2B - IL size89
Referenced calls
System.String::op_Equality(System.String, System.String)System.String::Concat(System.String, System.String)System.ArgumentOutOfRangeException::.ctor(System.String)
String literals
moneymoney:1money:2money:3Unknown money coin ID
GetCoinTypeAndStackSatisfyingMoney
#
public System.ValueTuple<System.Int32, System.Int32> GetCoinTypeAndStackSatisfyingMoney(System.UInt64 moneyAmount)
Method metadata
- Visibilitypublic
- Return type
System.ValueTuple<System.Int32, System.Int32> - StaticTrue
- VirtualFalse
- Hash
16746EF1981B01284CA9468AF911FFA18C9A883D28A5D28931C266189C1E9E39 - Body hash
C9BB2AD6B04DA21EBA8918F3560FF57DEC34ACD76343121FE7B41A1A77AC9F53 - IL size62
Referenced calls
Shared.Helpers.MoneyHelper::GetMultiplierForCoinType(System.Int32)Shared.Helpers.MoneyHelper::GetMaxItemStackForCoinType(System.Int32)System.ValueTuple<System.Int32, System.Int32>::.ctor(!0, !1)
GetIntValueForCoin
#
public System.Int32 GetIntValueForCoin(System.UInt64 money, System.Int32 coinType)
Method metadata
- Visibilitypublic
- Return type
System.Int32 - StaticTrue
- VirtualFalse
- Hash
C82EEF0ACF387B94ED89631EFBB13E3768CC0C525D397D5F13CAA24EA9BE07DD - Body hash
EA38D611C0FA76877DB2AFBCF4950D1B980BAE99CBC24E0D2458611916421531 - IL size97
Referenced calls
Shared.Helpers.MoneyHelper::GetValueForCoin(System.UInt64, System.Int32)System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::.ctor(System.Int32, System.Int32)System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::AppendFormatted(System.String)System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::AppendLiteral(System.String)System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::AppendFormatted(!!0)System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::ToStringAndClear()CandideCreator.Shared.Helpers.WarningHelper::Warning(System.String)
String literals
GetIntValueForCoin: Value for coin typewas bigger than the int.MaxValue.
GetMaxItemStackForCoinType
#
public System.Int32 GetMaxItemStackForCoinType(System.Int32 coinType)
Method metadata
- Visibilitypublic
- Return type
System.Int32 - StaticTrue
- VirtualFalse
- Hash
244BF640F98F8A6C403E47C9CC4679F8E38FFBB213F3DE2EE11FE0A73A79E528 - Body hash
1B2BBADCED1F81FEC4316BDDF3C9645401F7684A440D8473DD9817574E7696DE - IL size113
Referenced calls
System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::.ctor(System.Int32, System.Int32)System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::AppendFormatted(System.String)System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::AppendLiteral(System.String)System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::AppendFormatted(!!0)System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::ToStringAndClear()System.ArgumentException::.ctor(System.String)
Called by
String literals
GetValueForCoin: Invalid coin type
GetModifiedPriceValue
#
public System.UInt64 GetModifiedPriceValue(System.Int32 amount, System.UInt64 price, System.Double multiplier)
Method metadata
- Visibilitypublic
- Return type
System.UInt64 - StaticTrue
- VirtualFalse
- Hash
5673490C95EEF3A29EC4CE009F5E29F253DAA8D8D84C1F631E4D9AD42A0C8F4A - Body hash
B16C38F9D645DC2BFB3AD1ACA2D6AB0A435E08409ABB95A59D8C4DD9FF6ED121 - IL size17
Referenced calls
System.Double::Round(System.Double)
GetMultiplierForCoinType
#
public System.UInt64 GetMultiplierForCoinType(System.Int32 coinType)
Method metadata
- Visibilitypublic
- Return type
System.UInt64 - StaticTrue
- VirtualFalse
- Hash
9C235B5B322A8A1C9CC404EB5195179F0581B24013DE1A71A6AAA76674CAB19C - Body hash
26827ACA8D7AFC468FF1A155855F2973570FBD9282E6DE156FBCE0BAFAAE9E64 - IL size110
Referenced calls
System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::.ctor(System.Int32, System.Int32)System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::AppendFormatted(System.String)System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::AppendLiteral(System.String)System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::AppendFormatted(!!0)System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::ToStringAndClear()System.ArgumentException::.ctor(System.String)
Called by
CandideServer.ServerManagers.SimpleInventoryServerManager::TryDropMoneyCandide.CandideUI.CandideSplitInventoryMoneyMockComponent::OnDroppedCandide.CandideUI.Components.Holder.CoinSlot::OnControllerYPressedCandide.CandideUI.Components.Holder.CoinSlot::UpdateCandide.CandideUI.Components.Holder.MoneyCandideDraggableHolderContent::OnDroppedShared.Helpers.MoneyHelper::GetCoinTypeAndStackSatisfyingMoneyShared.Inventory.InventoryApplyEngine::SplitMoneyItemIntoNewMoneyItemShared.Inventory.InventoryDeltaEngine::MoveCoinTypeIntoItemsShared.Inventory.InventoryDeltaEngine::MoveMoneyIntoItemShared.Inventory.InventoryDeltaEngine::MoveMoneyItemsIntoMoney_CoinShared.Inventory.Models.DeltaTransaction::MoveMoney_ReturnRest
String literals
GetValueForCoin: Invalid coin type
GetValueForCoin
#
public System.ValueTuple<System.UInt64, System.Boolean> GetValueForCoin(System.UInt64 money, System.Int32 coinType)
Method metadata
- Visibilitypublic
- Return type
System.ValueTuple<System.UInt64, System.Boolean> - StaticTrue
- VirtualFalse
- Hash
54401BBBFC6DAE4FA51BDE39A6D28BEFBB45D603C9D32570B05FF28D72727E11 - Body hash
C4A1EE0C4F95274D844322B6B89E43CD68014E052D0ACB0117934532C52380DC - IL size148
Referenced calls
System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::.ctor(System.Int32, System.Int32)System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::AppendFormatted(System.String)System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::AppendLiteral(System.String)System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::AppendFormatted(!!0)System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::ToStringAndClear()System.ArgumentException::.ctor(System.String)System.ValueTuple<System.UInt64, System.Boolean>::.ctor(!0, !1)
Called by
String literals
GetValueForCoin: Invalid coin type