Revert "virtualize all net ids to reduce net traffic"
This reverts commit 027c338c5f.
Formatting fix left in.
This commit is contained in:
@@ -117,9 +117,7 @@ namespace Content.Shared.GameObjects.Components.Research
|
||||
public class LatheDatabaseState : ComponentState
|
||||
{
|
||||
public readonly List<string> Recipes;
|
||||
public override uint NetID => ContentNetIDs.LATHE_DATABASE;
|
||||
|
||||
public LatheDatabaseState(List<string> recipes)
|
||||
public LatheDatabaseState(List<string> recipes) : base(ContentNetIDs.LATHE_DATABASE)
|
||||
{
|
||||
Recipes = recipes;
|
||||
}
|
||||
|
||||
@@ -69,9 +69,7 @@ namespace Content.Shared.GameObjects.Components.Research
|
||||
public class MaterialStorageState : ComponentState
|
||||
{
|
||||
public readonly Dictionary<string, int> Storage;
|
||||
public override uint NetID => ContentNetIDs.MATERIAL_STORAGE;
|
||||
|
||||
public MaterialStorageState(Dictionary<string, int> storage)
|
||||
public MaterialStorageState(Dictionary<string, int> storage) : base(ContentNetIDs.MATERIAL_STORAGE)
|
||||
{
|
||||
Storage = storage;
|
||||
}
|
||||
|
||||
@@ -63,9 +63,7 @@ namespace Content.Shared.GameObjects.Components.Research
|
||||
public class ProtolatheDatabaseState : ComponentState
|
||||
{
|
||||
public readonly List<string> Recipes;
|
||||
public override uint NetID => ContentNetIDs.PROTOLATHE_DATABASE;
|
||||
|
||||
public ProtolatheDatabaseState(List<string> recipes)
|
||||
public ProtolatheDatabaseState(List<string> recipes) : base(ContentNetIDs.PROTOLATHE_DATABASE)
|
||||
{
|
||||
Recipes = recipes;
|
||||
}
|
||||
|
||||
@@ -104,14 +104,12 @@ namespace Content.Shared.GameObjects.Components.Research
|
||||
public class TechnologyDatabaseState : ComponentState
|
||||
{
|
||||
public List<string> Technologies;
|
||||
public override uint NetID => ContentNetIDs.TECHNOLOGY_DATABASE;
|
||||
|
||||
public TechnologyDatabaseState(List<string> technologies)
|
||||
public TechnologyDatabaseState(List<string> technologies) : base(ContentNetIDs.TECHNOLOGY_DATABASE)
|
||||
{
|
||||
Technologies = technologies;
|
||||
}
|
||||
|
||||
public TechnologyDatabaseState(List<TechnologyPrototype> technologies)
|
||||
public TechnologyDatabaseState(List<TechnologyPrototype> technologies) : base(ContentNetIDs.TECHNOLOGY_DATABASE)
|
||||
{
|
||||
Technologies = new List<string>();
|
||||
foreach (var technology in technologies)
|
||||
|
||||
Reference in New Issue
Block a user