mirror of
https://github.com/tribufu/ServerManagers
synced 2026-06-01 09:42:39 +00:00
source code checkin
This commit is contained in:
parent
5f8fb2c825
commit
7e57b72e35
675 changed files with 168433 additions and 0 deletions
25
src/ARKServerManager/Lib/ViewModel/SupplyCrateSettings.cs
Normal file
25
src/ARKServerManager/Lib/ViewModel/SupplyCrateSettings.cs
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
using System.Windows;
|
||||
|
||||
namespace ServerManagerTool.Lib.ViewModel
|
||||
{
|
||||
public class SupplyCrateItemEntrySettings : DependencyObject
|
||||
{
|
||||
public static readonly DependencyProperty ItemClassStringProperty = DependencyProperty.Register(nameof(ItemClassString), typeof(string), typeof(SupplyCrateItemEntrySettings), new PropertyMetadata(string.Empty));
|
||||
public string ItemClassString
|
||||
{
|
||||
get { return (string)GetValue(ItemClassStringProperty); }
|
||||
set { SetValue(ItemClassStringProperty, value); }
|
||||
}
|
||||
|
||||
public static readonly DependencyProperty ItemWeightProperty = DependencyProperty.Register(nameof(ItemWeight), typeof(float), typeof(SupplyCrateItemEntrySettings), new PropertyMetadata(1.0f));
|
||||
public float ItemWeight
|
||||
{
|
||||
get { return (float)GetValue(ItemWeightProperty); }
|
||||
set { SetValue(ItemWeightProperty, value); }
|
||||
}
|
||||
|
||||
public string DisplayName => GameData.FriendlySupplyCrateNameForClass(ItemClassString);
|
||||
|
||||
public bool IsValid => !string.IsNullOrWhiteSpace(ItemClassString);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue