本文整理汇总了C#中EquipmentSlot.ToString方法的典型用法代码示例。如果您正苦于以下问题:C# EquipmentSlot.ToString方法的具体用法?C# EquipmentSlot.ToString怎么用?C# EquipmentSlot.ToString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类EquipmentSlot
的用法示例。
在下文中一共展示了EquipmentSlot.ToString方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: EquipmentSlotUi
public EquipmentSlotUi(EquipmentSlot slot, IPlayerManager playerManager, IResourceManager resourceManager,
IUserInterfaceManager userInterfaceManager)
{
_playerManager = playerManager;
_resourceManager = resourceManager;
_userInterfaceManager = userInterfaceManager;
_color = Color.White;
AssignedSlot = slot;
_buttonSprite = _resourceManager.GetSprite("slot");
_textSprite = new TextSprite(slot + "UIElementSlot", slot.ToString(),
_resourceManager.GetFont("CALIBRI"))
{
ShadowColor = Color.Black,
ShadowOffset = new Vector2D(1, 1),
Shadowed = true,
Color = Color.White
};
Update(0);
}
示例2: RemoveEquipment
public void RemoveEquipment(EquipmentSlot slot)
{
if (Equipment[(int)slot] != null)
{
var success = Backpack.TryAddItem((Equipment[(int)slot]));
if (success)
{
Equipment[(int)slot] = null;
Logger.Instance.Info("{0} has remove an item from the slot {1}.", Name, slot.ToString());
OnEquipmentChanged(null, this, slot);
}
}
}