public NetVerbData(VerbData data, string key)
 {
     Text         = data.Text;
     Key          = key;
     Category     = data.Category;
     CategoryIcon = data.CategoryIcon;
     Icon         = data.Icon;
     Available    = data.Visibility == VerbVisibility.Visible;
 }
 public UplinkListingData(string listingName, string itemId,
                          int price, UplinkCategory category,
                          string description, SpriteSpecifier?icon)
 {
     ListingName = listingName;
     Price       = price;
     Category    = category;
     Description = description;
     ItemId      = itemId;
     Icon        = icon;
 }
        protected override void Initialize()
        {
            base.Initialize();

            if (Owner.TryGetComponent(out SpriteComponent? sprite) &&
                sprite.BaseRSIPath != null)
            {
                InitialSprite = new SpriteSpecifier.Rsi(new ResourcePath(sprite.BaseRSIPath), "icon");
            }

            InitialName        = Owner.Name;
            InitialDescription = Owner.Description;
        }
        protected override void Initialize()
        {
            base.Initialize();

            if (_entMan.TryGetComponent(Owner, out SpriteComponent? sprite) &&
                sprite.BaseRSIPath != null)
            {
                InitialSprite = new SpriteSpecifier.Rsi(new ResourcePath(sprite.BaseRSIPath), "icon");
            }

            InitialName        = _entMan.GetComponent <MetaDataComponent>(Owner).EntityName;
            InitialDescription = _entMan.GetComponent <MetaDataComponent>(Owner).EntityDescription;
        }
 public VerbCategoryData(string name, SpriteSpecifier?icon)
 {
     Name = name;
     Icon = icon;
 }
Exemple #6
0
 public VerbCategory(string text, string?icon, bool iconsOnly = false)
 {
     Text      = Loc.GetString(text);
     Icon      = icon == null ? null : new SpriteSpecifier.Texture(new ResourcePath(icon));
     IconsOnly = iconsOnly;
 }