Ejemplo n.º 1
0
 private void GeneratePlastic(string id, string name)
 {
     Plastics.Add(id, new Plastic()
     {
         Id   = id,
         Name = name
     });
 }
Ejemplo n.º 2
0
        private void GenerateMaterial(int id, string name, string manufacturer, string manufacturerId, string type)
        {
            Material material = new Material()
            {
                Id                     = id,
                Name                   = name,
                Manufacturer           = manufacturer,
                ManufacturerSpecificId = manufacturerId,
                Type                   = Plastics.GetValueOrDefault(type),
                CustomProps            = new List <CustomMaterialPropValue>()
            };

            Materials.Add(material.Id, material);
        }
Ejemplo n.º 3
0
 public SSComponent() : base(16)
 {
     Name         = "SS Component";
     RequiredTech = new Plastics();
     Type         = Building.SSComponent;
 }