diff --git a/isometric-park-fna/Components/ImageComponent.cs b/isometric-park-fna/Components/ImageComponent.cs new file mode 100644 --- /dev/null +++ b/isometric-park-fna/Components/ImageComponent.cs @@ -0,0 +1,10 @@ + +using Encompass; + +namespace isometricparkfna.Components +{ + public struct ImageComponent : IComponent + { + public int ImageIndex; + } +} \ No newline at end of file diff --git a/isometric-park-fna/Components/OffersContractsComponent.cs b/isometric-park-fna/Components/OffersContractsComponent.cs new file mode 100644 --- /dev/null +++ b/isometric-park-fna/Components/OffersContractsComponent.cs @@ -0,0 +1,9 @@ + +using Encompass; + +namespace isometricparkfna.Components +{ + public struct OffersContractsComponent : IComponent + { + } +} \ No newline at end of file diff --git a/isometric-park-fna/Components/RelatedOrganizationComponent.cs b/isometric-park-fna/Components/RelatedOrganizationComponent.cs new file mode 100644 --- /dev/null +++ b/isometric-park-fna/Components/RelatedOrganizationComponent.cs @@ -0,0 +1,10 @@ + +using Encompass; + +namespace isometricparkfna.Components +{ + public struct RelatedOrganizationComponent : IComponent, IHasEntity + { + public Entity Entity {get; set;} + } +} \ No newline at end of file diff --git a/isometric-park-fna/FNAGame.cs b/isometric-park-fna/FNAGame.cs --- a/isometric-park-fna/FNAGame.cs +++ b/isometric-park-fna/FNAGame.cs @@ -263,14 +263,17 @@ description = "#company_description#" }); WorldBuilder.SendMessage(new SpawnOrganizationtMessage { offersContracts = true, name = "#family_company.capitalizeAll#", - description = "#family_company_description#" }); + description = "#family_company_description#", + type = OrganizationType.Family }); WorldBuilder.SendMessage(new SpawnOrganizationtMessage { offersContracts = true, name = "#large_company.capitalizeAll#", - description = "#large_company_description#" }); + description = "#large_company_description#", + type = OrganizationType.LargeCorporation }); } WorldBuilder.SendMessage(new SpawnOrganizationtMessage { offersContracts = true, name = "#coop_company.capitalizeAll#", - description = "#coop_company_description#" }); + description = "#coop_company_description#", + type = OrganizationType.Cooperative }); WorldBuilder.SendMessage(new SpawnContractMessage { squares = squares, diff --git a/isometric-park-fna/Messages/SpawnOrganizationMessage.cs b/isometric-park-fna/Messages/SpawnOrganizationMessage.cs new file mode 100644 --- /dev/null +++ b/isometric-park-fna/Messages/SpawnOrganizationMessage.cs @@ -0,0 +1,21 @@ + +using Microsoft.Xna.Framework; +using Encompass; + +using isometricparkfna.Spawners; + +#nullable enable + +namespace isometricparkfna.Messages { + + public struct SpawnOrganizationtMessage : IMessage + { + public string? name; + public string? description; + + public bool offersContracts; + public OrganizationType type; + + + } +}