Add AdvertiseComponent and add it to vending machines (#3756)
* WIP AdvertiseComponent * Add AdvertiseComponent and add it to vending machines * Add snacks.yml * Capitalise C in cigarette machine * Update Content.Server/GameObjects/Components/AdvertiseComponent.cs Co-authored-by: Pieter-Jan Briers <pieterjan.briers@gmail.com> * Update Content.Server/GameObjects/Components/AdvertiseComponent.cs Co-authored-by: Pieter-Jan Briers <pieterjan.briers@gmail.com> * Fix most problems * Add localisation + exception for illegal prototype values * Add ads for smart fridge, discount dan's, youtool and mining * Oops * Fix style * Make dependencies local * Remove some ads, increase wait * Increase wait, allow full initial wait width * Fix error * Update sovietsoda.ftl * Update sovietsoda.ftl Co-authored-by: Pieter-Jan Briers <pieterjan.briers@gmail.com> Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
This commit is contained in:
19
Content.Server/Advertisements/AdvertisementsPackPrototype.cs
Normal file
19
Content.Server/Advertisements/AdvertisementsPackPrototype.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Robust.Shared.Prototypes;
|
||||
using Robust.Shared.Serialization.Manager.Attributes;
|
||||
using Robust.Shared.ViewVariables;
|
||||
|
||||
namespace Content.Server.Advertisements
|
||||
{
|
||||
[Serializable, Prototype("advertisementsPack")]
|
||||
public class AdvertisementsPackPrototype : IPrototype
|
||||
{
|
||||
[ViewVariables]
|
||||
[field: DataField("id", required: true)]
|
||||
public string ID { get; } = default!;
|
||||
|
||||
[field: DataField("advertisements")]
|
||||
public List<string> Advertisements { get; } = new();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user