new events from 50.08, fixes #10
This commit is contained in:
parent
b0302a93b1
commit
5449c1820f
|
@ -4086,6 +4086,15 @@
|
||||||
"Values": {},
|
"Values": {},
|
||||||
"Enum": true
|
"Enum": true
|
||||||
},
|
},
|
||||||
|
"df_world|historical_events|historical_event+ArtifactCreated|entity_id": {
|
||||||
|
"IsString": false,
|
||||||
|
"NoBool": true,
|
||||||
|
"Multiple": false,
|
||||||
|
"Base": true,
|
||||||
|
"Plus": false,
|
||||||
|
"Values": {},
|
||||||
|
"Enum": true
|
||||||
|
},
|
||||||
"df_world|historical_events|historical_event+ArtifactCreated|hist_figure_id": {
|
"df_world|historical_events|historical_event+ArtifactCreated|hist_figure_id": {
|
||||||
"IsString": false,
|
"IsString": false,
|
||||||
"NoBool": true,
|
"NoBool": true,
|
||||||
|
@ -5390,6 +5399,7 @@
|
||||||
"DWARF": true,
|
"DWARF": true,
|
||||||
"ELF": true,
|
"ELF": true,
|
||||||
"GOBLIN": true,
|
"GOBLIN": true,
|
||||||
|
"GORLAK": true,
|
||||||
"HUMAN": true,
|
"HUMAN": true,
|
||||||
"KOBOLD": true,
|
"KOBOLD": true,
|
||||||
"REPTILE_MAN": true,
|
"REPTILE_MAN": true,
|
||||||
|
@ -7125,6 +7135,42 @@
|
||||||
"Values": {},
|
"Values": {},
|
||||||
"Enum": true
|
"Enum": true
|
||||||
},
|
},
|
||||||
|
"df_world|historical_events|historical_event+HfAskedAboutArtifact|artifact_id": {
|
||||||
|
"IsString": false,
|
||||||
|
"NoBool": true,
|
||||||
|
"Multiple": false,
|
||||||
|
"Base": true,
|
||||||
|
"Plus": false,
|
||||||
|
"Values": {},
|
||||||
|
"Enum": true
|
||||||
|
},
|
||||||
|
"df_world|historical_events|historical_event+HfAskedAboutArtifact|hist_fig_id": {
|
||||||
|
"IsString": false,
|
||||||
|
"NoBool": true,
|
||||||
|
"Multiple": false,
|
||||||
|
"Base": true,
|
||||||
|
"Plus": false,
|
||||||
|
"Values": {},
|
||||||
|
"Enum": true
|
||||||
|
},
|
||||||
|
"df_world|historical_events|historical_event+HfAskedAboutArtifact|site_id": {
|
||||||
|
"IsString": false,
|
||||||
|
"NoBool": true,
|
||||||
|
"Multiple": false,
|
||||||
|
"Base": true,
|
||||||
|
"Plus": false,
|
||||||
|
"Values": {},
|
||||||
|
"Enum": true
|
||||||
|
},
|
||||||
|
"df_world|historical_events|historical_event+HfAskedAboutArtifact|structure_id": {
|
||||||
|
"IsString": false,
|
||||||
|
"NoBool": true,
|
||||||
|
"Multiple": false,
|
||||||
|
"Base": true,
|
||||||
|
"Plus": false,
|
||||||
|
"Values": {},
|
||||||
|
"Enum": true
|
||||||
|
},
|
||||||
"df_world|historical_events|historical_event+HfAttackedSite|attacker_hfid": {
|
"df_world|historical_events|historical_event+HfAttackedSite|attacker_hfid": {
|
||||||
"IsString": false,
|
"IsString": false,
|
||||||
"NoBool": true,
|
"NoBool": true,
|
||||||
|
@ -7161,6 +7207,51 @@
|
||||||
"Values": {},
|
"Values": {},
|
||||||
"Enum": true
|
"Enum": true
|
||||||
},
|
},
|
||||||
|
"df_world|historical_events|historical_event+HfCarouse|feature_layer_id": {
|
||||||
|
"IsString": false,
|
||||||
|
"NoBool": true,
|
||||||
|
"Multiple": false,
|
||||||
|
"Base": true,
|
||||||
|
"Plus": false,
|
||||||
|
"Values": {},
|
||||||
|
"Enum": true
|
||||||
|
},
|
||||||
|
"df_world|historical_events|historical_event+HfCarouse|group_hfid": {
|
||||||
|
"IsString": false,
|
||||||
|
"NoBool": true,
|
||||||
|
"Multiple": true,
|
||||||
|
"Base": true,
|
||||||
|
"Plus": false,
|
||||||
|
"Values": {},
|
||||||
|
"Enum": true
|
||||||
|
},
|
||||||
|
"df_world|historical_events|historical_event+HfCarouse|site_id": {
|
||||||
|
"IsString": false,
|
||||||
|
"NoBool": true,
|
||||||
|
"Multiple": false,
|
||||||
|
"Base": true,
|
||||||
|
"Plus": false,
|
||||||
|
"Values": {},
|
||||||
|
"Enum": true
|
||||||
|
},
|
||||||
|
"df_world|historical_events|historical_event+HfCarouse|structure_id": {
|
||||||
|
"IsString": false,
|
||||||
|
"NoBool": true,
|
||||||
|
"Multiple": false,
|
||||||
|
"Base": true,
|
||||||
|
"Plus": false,
|
||||||
|
"Values": {},
|
||||||
|
"Enum": true
|
||||||
|
},
|
||||||
|
"df_world|historical_events|historical_event+HfCarouse|subregion_id": {
|
||||||
|
"IsString": false,
|
||||||
|
"NoBool": true,
|
||||||
|
"Multiple": false,
|
||||||
|
"Base": true,
|
||||||
|
"Plus": false,
|
||||||
|
"Values": {},
|
||||||
|
"Enum": true
|
||||||
|
},
|
||||||
"df_world|historical_events|historical_event+HfConfronted|coords": {
|
"df_world|historical_events|historical_event+HfConfronted|coords": {
|
||||||
"IsString": true,
|
"IsString": true,
|
||||||
"NoBool": true,
|
"NoBool": true,
|
||||||
|
@ -7766,8 +7857,11 @@
|
||||||
"Plus": true,
|
"Plus": true,
|
||||||
"Values": {
|
"Values": {
|
||||||
"DEFAULT": true,
|
"DEFAULT": true,
|
||||||
|
"DRONE": true,
|
||||||
"FEMALE": true,
|
"FEMALE": true,
|
||||||
"MALE": true,
|
"MALE": true,
|
||||||
|
"QUEEN": true,
|
||||||
|
"SOLDIER": true,
|
||||||
"WORKER": true
|
"WORKER": true
|
||||||
},
|
},
|
||||||
"Enum": true
|
"Enum": true
|
||||||
|
@ -9967,6 +10061,7 @@
|
||||||
"engineering:optics:theory of color": true,
|
"engineering:optics:theory of color": true,
|
||||||
"engineering:optics:water-filled spheres": true,
|
"engineering:optics:water-filled spheres": true,
|
||||||
"geography:cartography:basic": true,
|
"geography:cartography:basic": true,
|
||||||
|
"geography:cartography:distance scale": true,
|
||||||
"geography:cartography:economic": true,
|
"geography:cartography:economic": true,
|
||||||
"geography:cartography:geological": true,
|
"geography:cartography:geological": true,
|
||||||
"geography:form:atlas": true,
|
"geography:form:atlas": true,
|
||||||
|
@ -15124,6 +15219,7 @@
|
||||||
"counting_house": true,
|
"counting_house": true,
|
||||||
"dungeon": true,
|
"dungeon": true,
|
||||||
"guildhall": true,
|
"guildhall": true,
|
||||||
|
"hospital": true,
|
||||||
"inn tavern": true,
|
"inn tavern": true,
|
||||||
"inn_tavern": true,
|
"inn_tavern": true,
|
||||||
"keep": true,
|
"keep": true,
|
||||||
|
@ -16012,11 +16108,21 @@
|
||||||
"base": "hf abducted",
|
"base": "hf abducted",
|
||||||
"plus": ""
|
"plus": ""
|
||||||
},
|
},
|
||||||
|
"HfAskedAboutArtifact": {
|
||||||
|
"name": "HfAskedAboutArtifact",
|
||||||
|
"base": "hf asked about artifact",
|
||||||
|
"plus": ""
|
||||||
|
},
|
||||||
"HfAttackedSite": {
|
"HfAttackedSite": {
|
||||||
"name": "HfAttackedSite",
|
"name": "HfAttackedSite",
|
||||||
"base": "hf attacked site",
|
"base": "hf attacked site",
|
||||||
"plus": ""
|
"plus": ""
|
||||||
},
|
},
|
||||||
|
"HfCarouse": {
|
||||||
|
"name": "HfCarouse",
|
||||||
|
"base": "hf carouse",
|
||||||
|
"plus": ""
|
||||||
|
},
|
||||||
"HfConfronted": {
|
"HfConfronted": {
|
||||||
"name": "HfConfronted",
|
"name": "HfConfronted",
|
||||||
"base": "hf confronted",
|
"base": "hf confronted",
|
||||||
|
@ -16632,6 +16738,11 @@
|
||||||
"base": "guildhall",
|
"base": "guildhall",
|
||||||
"plus": "guildhall"
|
"plus": "guildhall"
|
||||||
},
|
},
|
||||||
|
"Hospital": {
|
||||||
|
"name": "Hospital",
|
||||||
|
"base": "hospital",
|
||||||
|
"plus": ""
|
||||||
|
},
|
||||||
"InnTavern": {
|
"InnTavern": {
|
||||||
"name": "InnTavern",
|
"name": "InnTavern",
|
||||||
"base": "inn tavern",
|
"base": "inn tavern",
|
||||||
|
|
|
@ -2217,3 +2217,11 @@ func (x *HistoricalEventWrittenContentComposed) Html(c *Context) string {
|
||||||
func (x *HistoricalEventSabotage) Html(c *Context) string {
|
func (x *HistoricalEventSabotage) Html(c *Context) string {
|
||||||
return c.hf(x.SaboteurHfid) + " sabotaged the activities of " + c.hfRelated(x.TargetHfid, x.SaboteurHfid) + c.site(x.SiteId, " at")
|
return c.hf(x.SaboteurHfid) + " sabotaged the activities of " + c.hfRelated(x.TargetHfid, x.SaboteurHfid) + c.site(x.SiteId, " at")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (x *HistoricalEventHfAskedAboutArtifact) Html(c *Context) string {
|
||||||
|
return c.hf(x.HistFigId) + " asked about " + c.artifact(x.ArtifactId) + c.siteStructure(x.SiteId, x.StructureId, " in")
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *HistoricalEventHfCarouse) Html(c *Context) string {
|
||||||
|
return c.hfList(x.GroupHfid) + " caroused " + c.siteStructure(x.SiteId, x.StructureId, " in")
|
||||||
|
}
|
||||||
|
|
|
@ -72,6 +72,8 @@ func (x *Structure) Icon() string {
|
||||||
return "fa-solid fa-dungeon"
|
return "fa-solid fa-dungeon"
|
||||||
case StructureType_Guildhall:
|
case StructureType_Guildhall:
|
||||||
return "fa-solid fa-wrench"
|
return "fa-solid fa-wrench"
|
||||||
|
case StructureType_Hospital:
|
||||||
|
return "fa-solid fa-hospital"
|
||||||
case StructureType_InnTavern:
|
case StructureType_InnTavern:
|
||||||
return "fa-solid fa-utensils"
|
return "fa-solid fa-utensils"
|
||||||
case StructureType_Keep:
|
case StructureType_Keep:
|
||||||
|
|
|
@ -124,22 +124,26 @@ func InitSameFields() {
|
||||||
"HistoricalEventArtifactCopied": {},
|
"HistoricalEventArtifactCopied": {},
|
||||||
"HistoricalEventArtifactCreated": {
|
"HistoricalEventArtifactCreated": {
|
||||||
"CreatorHfid": {
|
"CreatorHfid": {
|
||||||
|
"EntityId": true,
|
||||||
"HistFigureId": true,
|
"HistFigureId": true,
|
||||||
"SiteId": true,
|
"SiteId": true,
|
||||||
"UnitId": true,
|
"UnitId": true,
|
||||||
},
|
},
|
||||||
"CreatorUnitId": {
|
"CreatorUnitId": {
|
||||||
|
"EntityId": true,
|
||||||
"HistFigureId": true,
|
"HistFigureId": true,
|
||||||
"SiteId": true,
|
"SiteId": true,
|
||||||
"UnitId": true,
|
"UnitId": true,
|
||||||
},
|
},
|
||||||
"Reason": {},
|
"Reason": {},
|
||||||
"SanctifyHf": {
|
"SanctifyHf": {
|
||||||
|
"EntityId": true,
|
||||||
"HistFigureId": true,
|
"HistFigureId": true,
|
||||||
"SiteId": true,
|
"SiteId": true,
|
||||||
"UnitId": true,
|
"UnitId": true,
|
||||||
},
|
},
|
||||||
"Site": {
|
"Site": {
|
||||||
|
"EntityId": true,
|
||||||
"HistFigureId": true,
|
"HistFigureId": true,
|
||||||
"SiteId": true,
|
"SiteId": true,
|
||||||
"UnitId": true,
|
"UnitId": true,
|
||||||
|
@ -406,7 +410,9 @@ func InitSameFields() {
|
||||||
"HistoricalEventFirstContact": {},
|
"HistoricalEventFirstContact": {},
|
||||||
"HistoricalEventGamble": {},
|
"HistoricalEventGamble": {},
|
||||||
"HistoricalEventHfAbducted": {},
|
"HistoricalEventHfAbducted": {},
|
||||||
|
"HistoricalEventHfAskedAboutArtifact": {},
|
||||||
"HistoricalEventHfAttackedSite": {},
|
"HistoricalEventHfAttackedSite": {},
|
||||||
|
"HistoricalEventHfCarouse": {},
|
||||||
"HistoricalEventHfConfronted": {},
|
"HistoricalEventHfConfronted": {},
|
||||||
"HistoricalEventHfConvicted": {},
|
"HistoricalEventHfConvicted": {},
|
||||||
"HistoricalEventHfDestroyedSite": {},
|
"HistoricalEventHfDestroyedSite": {},
|
||||||
|
@ -4149,6 +4155,7 @@ func (s HistoricalEventArtifactCreatedReason) MarshalJSON() ([]byte, error) {
|
||||||
type HistoricalEventArtifactCreated struct {
|
type HistoricalEventArtifactCreated struct {
|
||||||
ArtifactId int `json:"artifactId" legend:"both" related:""` // artifact_id
|
ArtifactId int `json:"artifactId" legend:"both" related:""` // artifact_id
|
||||||
Circumstance *HistoricalEventArtifactCreatedCircumstance `json:"circumstance" legend:"plus" related:""` // circumstance
|
Circumstance *HistoricalEventArtifactCreatedCircumstance `json:"circumstance" legend:"plus" related:""` // circumstance
|
||||||
|
EntityId int `json:"entityId" legend:"base" related:""` // entity_id
|
||||||
HistFigureId int `json:"histFigureId" legend:"base" related:""` // hist_figure_id
|
HistFigureId int `json:"histFigureId" legend:"base" related:""` // hist_figure_id
|
||||||
NameOnly bool `json:"nameOnly" legend:"base" related:""` // name_only
|
NameOnly bool `json:"nameOnly" legend:"base" related:""` // name_only
|
||||||
Reason HistoricalEventArtifactCreatedReason `json:"reason" legend:"plus" related:""` // reason
|
Reason HistoricalEventArtifactCreatedReason `json:"reason" legend:"plus" related:""` // reason
|
||||||
|
@ -4160,6 +4167,7 @@ type HistoricalEventArtifactCreated struct {
|
||||||
func NewHistoricalEventArtifactCreated() *HistoricalEventArtifactCreated {
|
func NewHistoricalEventArtifactCreated() *HistoricalEventArtifactCreated {
|
||||||
return &HistoricalEventArtifactCreated{
|
return &HistoricalEventArtifactCreated{
|
||||||
ArtifactId: -1,
|
ArtifactId: -1,
|
||||||
|
EntityId: -1,
|
||||||
HistFigureId: -1,
|
HistFigureId: -1,
|
||||||
SanctifyHf: -1,
|
SanctifyHf: -1,
|
||||||
SiteId: -1,
|
SiteId: -1,
|
||||||
|
@ -4167,7 +4175,7 @@ func NewHistoricalEventArtifactCreated() *HistoricalEventArtifactCreated {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
func (x *HistoricalEventArtifactCreated) Type() string { return "artifact created" }
|
func (x *HistoricalEventArtifactCreated) Type() string { return "artifact created" }
|
||||||
func (x *HistoricalEventArtifactCreated) RelatedToEntity(id int) bool { return false }
|
func (x *HistoricalEventArtifactCreated) RelatedToEntity(id int) bool { return x.EntityId == id }
|
||||||
func (x *HistoricalEventArtifactCreated) RelatedToHf(id int) bool {
|
func (x *HistoricalEventArtifactCreated) RelatedToHf(id int) bool {
|
||||||
return x.HistFigureId == id || x.SanctifyHf == id
|
return x.HistFigureId == id || x.SanctifyHf == id
|
||||||
}
|
}
|
||||||
|
@ -4184,6 +4192,9 @@ func (x *HistoricalEventArtifactCreated) RelatedToMountain(id int) bool
|
||||||
func (x *HistoricalEventArtifactCreated) RelatedToIdentity(id int) bool { return false }
|
func (x *HistoricalEventArtifactCreated) RelatedToIdentity(id int) bool { return false }
|
||||||
|
|
||||||
func (x *HistoricalEventArtifactCreated) CheckFields() {
|
func (x *HistoricalEventArtifactCreated) CheckFields() {
|
||||||
|
if x.SanctifyHf != x.EntityId {
|
||||||
|
sameFields["HistoricalEventArtifactCreated"]["SanctifyHf"]["EntityId"] = false
|
||||||
|
}
|
||||||
if x.SanctifyHf != x.HistFigureId {
|
if x.SanctifyHf != x.HistFigureId {
|
||||||
sameFields["HistoricalEventArtifactCreated"]["SanctifyHf"]["HistFigureId"] = false
|
sameFields["HistoricalEventArtifactCreated"]["SanctifyHf"]["HistFigureId"] = false
|
||||||
}
|
}
|
||||||
|
@ -4201,6 +4212,9 @@ func (x *HistoricalEventArtifactCreated) MarshalJSON() ([]byte, error) {
|
||||||
d["artifactId"] = x.ArtifactId
|
d["artifactId"] = x.ArtifactId
|
||||||
}
|
}
|
||||||
d["circumstance"] = x.Circumstance
|
d["circumstance"] = x.Circumstance
|
||||||
|
if x.EntityId != -1 {
|
||||||
|
d["entityId"] = x.EntityId
|
||||||
|
}
|
||||||
if x.HistFigureId != -1 {
|
if x.HistFigureId != -1 {
|
||||||
d["histFigureId"] = x.HistFigureId
|
d["histFigureId"] = x.HistFigureId
|
||||||
}
|
}
|
||||||
|
@ -9505,6 +9519,60 @@ func (x *HistoricalEventHfAbducted) MarshalJSON() ([]byte, error) {
|
||||||
return json.Marshal(d)
|
return json.Marshal(d)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type HistoricalEventHfAskedAboutArtifact struct {
|
||||||
|
ArtifactId int `json:"artifactId" legend:"base" related:""` // artifact_id
|
||||||
|
HistFigId int `json:"histFigId" legend:"base" related:""` // hist_fig_id
|
||||||
|
SiteId int `json:"siteId" legend:"base" related:""` // site_id
|
||||||
|
StructureId int `json:"structureId" legend:"base" related:""` // structure_id
|
||||||
|
}
|
||||||
|
|
||||||
|
func NewHistoricalEventHfAskedAboutArtifact() *HistoricalEventHfAskedAboutArtifact {
|
||||||
|
return &HistoricalEventHfAskedAboutArtifact{
|
||||||
|
ArtifactId: -1,
|
||||||
|
HistFigId: -1,
|
||||||
|
SiteId: -1,
|
||||||
|
StructureId: -1,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
func (x *HistoricalEventHfAskedAboutArtifact) Type() string { return "hf asked about artifact" }
|
||||||
|
func (x *HistoricalEventHfAskedAboutArtifact) RelatedToEntity(id int) bool { return false }
|
||||||
|
func (x *HistoricalEventHfAskedAboutArtifact) RelatedToHf(id int) bool { return false }
|
||||||
|
func (x *HistoricalEventHfAskedAboutArtifact) RelatedToArtifact(id int) bool {
|
||||||
|
return x.ArtifactId == id
|
||||||
|
}
|
||||||
|
func (x *HistoricalEventHfAskedAboutArtifact) RelatedToSite(id int) bool { return x.SiteId == id }
|
||||||
|
func (x *HistoricalEventHfAskedAboutArtifact) RelatedToStructure(siteId, id int) bool {
|
||||||
|
return x.RelatedToSite(siteId) && (x.StructureId == id)
|
||||||
|
}
|
||||||
|
func (x *HistoricalEventHfAskedAboutArtifact) RelatedToRegion(id int) bool { return false }
|
||||||
|
func (x *HistoricalEventHfAskedAboutArtifact) RelatedToWorldConstruction(id int) bool { return false }
|
||||||
|
func (x *HistoricalEventHfAskedAboutArtifact) RelatedToWrittenContent(id int) bool { return false }
|
||||||
|
func (x *HistoricalEventHfAskedAboutArtifact) RelatedToDanceForm(id int) bool { return false }
|
||||||
|
func (x *HistoricalEventHfAskedAboutArtifact) RelatedToMusicalForm(id int) bool { return false }
|
||||||
|
func (x *HistoricalEventHfAskedAboutArtifact) RelatedToPoeticForm(id int) bool { return false }
|
||||||
|
func (x *HistoricalEventHfAskedAboutArtifact) RelatedToMountain(id int) bool { return false }
|
||||||
|
func (x *HistoricalEventHfAskedAboutArtifact) RelatedToIdentity(id int) bool { return false }
|
||||||
|
|
||||||
|
func (x *HistoricalEventHfAskedAboutArtifact) CheckFields() {
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *HistoricalEventHfAskedAboutArtifact) MarshalJSON() ([]byte, error) {
|
||||||
|
d := make(map[string]any)
|
||||||
|
if x.ArtifactId != -1 {
|
||||||
|
d["artifactId"] = x.ArtifactId
|
||||||
|
}
|
||||||
|
if x.HistFigId != -1 {
|
||||||
|
d["histFigId"] = x.HistFigId
|
||||||
|
}
|
||||||
|
if x.SiteId != -1 {
|
||||||
|
d["siteId"] = x.SiteId
|
||||||
|
}
|
||||||
|
if x.StructureId != -1 {
|
||||||
|
d["structureId"] = x.StructureId
|
||||||
|
}
|
||||||
|
return json.Marshal(d)
|
||||||
|
}
|
||||||
|
|
||||||
type HistoricalEventHfAttackedSite struct {
|
type HistoricalEventHfAttackedSite struct {
|
||||||
AttackerHfid int `json:"attackerHfid" legend:"base" related:""` // attacker_hfid
|
AttackerHfid int `json:"attackerHfid" legend:"base" related:""` // attacker_hfid
|
||||||
DefenderCivId int `json:"defenderCivId" legend:"base" related:""` // defender_civ_id
|
DefenderCivId int `json:"defenderCivId" legend:"base" related:""` // defender_civ_id
|
||||||
|
@ -9557,6 +9625,60 @@ func (x *HistoricalEventHfAttackedSite) MarshalJSON() ([]byte, error) {
|
||||||
return json.Marshal(d)
|
return json.Marshal(d)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type HistoricalEventHfCarouse struct {
|
||||||
|
FeatureLayerId int `json:"featureLayerId" legend:"base" related:""` // feature_layer_id
|
||||||
|
GroupHfid []int `json:"groupHfid" legend:"base" related:""` // group_hfid
|
||||||
|
SiteId int `json:"siteId" legend:"base" related:""` // site_id
|
||||||
|
StructureId int `json:"structureId" legend:"base" related:""` // structure_id
|
||||||
|
SubregionId int `json:"subregionId" legend:"base" related:""` // subregion_id
|
||||||
|
}
|
||||||
|
|
||||||
|
func NewHistoricalEventHfCarouse() *HistoricalEventHfCarouse {
|
||||||
|
return &HistoricalEventHfCarouse{
|
||||||
|
FeatureLayerId: -1,
|
||||||
|
SiteId: -1,
|
||||||
|
StructureId: -1,
|
||||||
|
SubregionId: -1,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
func (x *HistoricalEventHfCarouse) Type() string { return "hf carouse" }
|
||||||
|
func (x *HistoricalEventHfCarouse) RelatedToEntity(id int) bool { return false }
|
||||||
|
func (x *HistoricalEventHfCarouse) RelatedToHf(id int) bool { return containsInt(x.GroupHfid, id) }
|
||||||
|
func (x *HistoricalEventHfCarouse) RelatedToArtifact(id int) bool { return false }
|
||||||
|
func (x *HistoricalEventHfCarouse) RelatedToSite(id int) bool { return x.SiteId == id }
|
||||||
|
func (x *HistoricalEventHfCarouse) RelatedToStructure(siteId, id int) bool {
|
||||||
|
return x.RelatedToSite(siteId) && (x.StructureId == id)
|
||||||
|
}
|
||||||
|
func (x *HistoricalEventHfCarouse) RelatedToRegion(id int) bool { return x.SubregionId == id }
|
||||||
|
func (x *HistoricalEventHfCarouse) RelatedToWorldConstruction(id int) bool { return false }
|
||||||
|
func (x *HistoricalEventHfCarouse) RelatedToWrittenContent(id int) bool { return false }
|
||||||
|
func (x *HistoricalEventHfCarouse) RelatedToDanceForm(id int) bool { return false }
|
||||||
|
func (x *HistoricalEventHfCarouse) RelatedToMusicalForm(id int) bool { return false }
|
||||||
|
func (x *HistoricalEventHfCarouse) RelatedToPoeticForm(id int) bool { return false }
|
||||||
|
func (x *HistoricalEventHfCarouse) RelatedToMountain(id int) bool { return false }
|
||||||
|
func (x *HistoricalEventHfCarouse) RelatedToIdentity(id int) bool { return false }
|
||||||
|
|
||||||
|
func (x *HistoricalEventHfCarouse) CheckFields() {
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *HistoricalEventHfCarouse) MarshalJSON() ([]byte, error) {
|
||||||
|
d := make(map[string]any)
|
||||||
|
if x.FeatureLayerId != -1 {
|
||||||
|
d["featureLayerId"] = x.FeatureLayerId
|
||||||
|
}
|
||||||
|
d["groupHfid"] = x.GroupHfid
|
||||||
|
if x.SiteId != -1 {
|
||||||
|
d["siteId"] = x.SiteId
|
||||||
|
}
|
||||||
|
if x.StructureId != -1 {
|
||||||
|
d["structureId"] = x.StructureId
|
||||||
|
}
|
||||||
|
if x.SubregionId != -1 {
|
||||||
|
d["subregionId"] = x.SubregionId
|
||||||
|
}
|
||||||
|
return json.Marshal(d)
|
||||||
|
}
|
||||||
|
|
||||||
type HistoricalEventHfConfrontedReason int
|
type HistoricalEventHfConfrontedReason int
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -13731,6 +13853,7 @@ const (
|
||||||
HistoricalEventKnowledgeDiscoveredKnowledge_EngineeringOpticsTheoryOfColor
|
HistoricalEventKnowledgeDiscoveredKnowledge_EngineeringOpticsTheoryOfColor
|
||||||
HistoricalEventKnowledgeDiscoveredKnowledge_EngineeringOpticsWaterFilledSpheres
|
HistoricalEventKnowledgeDiscoveredKnowledge_EngineeringOpticsWaterFilledSpheres
|
||||||
HistoricalEventKnowledgeDiscoveredKnowledge_GeographyCartographyBasic
|
HistoricalEventKnowledgeDiscoveredKnowledge_GeographyCartographyBasic
|
||||||
|
HistoricalEventKnowledgeDiscoveredKnowledge_GeographyCartographyDistanceScale
|
||||||
HistoricalEventKnowledgeDiscoveredKnowledge_GeographyCartographyEconomic
|
HistoricalEventKnowledgeDiscoveredKnowledge_GeographyCartographyEconomic
|
||||||
HistoricalEventKnowledgeDiscoveredKnowledge_GeographyCartographyGeological
|
HistoricalEventKnowledgeDiscoveredKnowledge_GeographyCartographyGeological
|
||||||
HistoricalEventKnowledgeDiscoveredKnowledge_GeographyFormAtlas
|
HistoricalEventKnowledgeDiscoveredKnowledge_GeographyFormAtlas
|
||||||
|
@ -14111,6 +14234,8 @@ func parseHistoricalEventKnowledgeDiscoveredKnowledge(s string) HistoricalEventK
|
||||||
return HistoricalEventKnowledgeDiscoveredKnowledge_EngineeringOpticsWaterFilledSpheres
|
return HistoricalEventKnowledgeDiscoveredKnowledge_EngineeringOpticsWaterFilledSpheres
|
||||||
case "geography:cartography:basic":
|
case "geography:cartography:basic":
|
||||||
return HistoricalEventKnowledgeDiscoveredKnowledge_GeographyCartographyBasic
|
return HistoricalEventKnowledgeDiscoveredKnowledge_GeographyCartographyBasic
|
||||||
|
case "geography:cartography:distance scale":
|
||||||
|
return HistoricalEventKnowledgeDiscoveredKnowledge_GeographyCartographyDistanceScale
|
||||||
case "geography:cartography:economic":
|
case "geography:cartography:economic":
|
||||||
return HistoricalEventKnowledgeDiscoveredKnowledge_GeographyCartographyEconomic
|
return HistoricalEventKnowledgeDiscoveredKnowledge_GeographyCartographyEconomic
|
||||||
case "geography:cartography:geological":
|
case "geography:cartography:geological":
|
||||||
|
@ -14683,6 +14808,8 @@ func (s HistoricalEventKnowledgeDiscoveredKnowledge) String() string {
|
||||||
return "engineering optics water filled spheres"
|
return "engineering optics water filled spheres"
|
||||||
case HistoricalEventKnowledgeDiscoveredKnowledge_GeographyCartographyBasic:
|
case HistoricalEventKnowledgeDiscoveredKnowledge_GeographyCartographyBasic:
|
||||||
return "geography cartography basic"
|
return "geography cartography basic"
|
||||||
|
case HistoricalEventKnowledgeDiscoveredKnowledge_GeographyCartographyDistanceScale:
|
||||||
|
return "geography cartography distance scale"
|
||||||
case HistoricalEventKnowledgeDiscoveredKnowledge_GeographyCartographyEconomic:
|
case HistoricalEventKnowledgeDiscoveredKnowledge_GeographyCartographyEconomic:
|
||||||
return "geography cartography economic"
|
return "geography cartography economic"
|
||||||
case HistoricalEventKnowledgeDiscoveredKnowledge_GeographyCartographyGeological:
|
case HistoricalEventKnowledgeDiscoveredKnowledge_GeographyCartographyGeological:
|
||||||
|
@ -21653,6 +21780,7 @@ const (
|
||||||
StructureType_CountingHouse
|
StructureType_CountingHouse
|
||||||
StructureType_Dungeon
|
StructureType_Dungeon
|
||||||
StructureType_Guildhall
|
StructureType_Guildhall
|
||||||
|
StructureType_Hospital
|
||||||
StructureType_InnTavern
|
StructureType_InnTavern
|
||||||
StructureType_Keep
|
StructureType_Keep
|
||||||
StructureType_Library
|
StructureType_Library
|
||||||
|
@ -21674,6 +21802,8 @@ func parseStructureType(s string) StructureType {
|
||||||
return StructureType_Dungeon
|
return StructureType_Dungeon
|
||||||
case "guildhall":
|
case "guildhall":
|
||||||
return StructureType_Guildhall
|
return StructureType_Guildhall
|
||||||
|
case "hospital":
|
||||||
|
return StructureType_Hospital
|
||||||
case "inn tavern":
|
case "inn tavern":
|
||||||
return StructureType_InnTavern
|
return StructureType_InnTavern
|
||||||
case "inn_tavern":
|
case "inn_tavern":
|
||||||
|
@ -21710,6 +21840,8 @@ func (s StructureType) String() string {
|
||||||
return "dungeon"
|
return "dungeon"
|
||||||
case StructureType_Guildhall:
|
case StructureType_Guildhall:
|
||||||
return "guildhall"
|
return "guildhall"
|
||||||
|
case StructureType_Hospital:
|
||||||
|
return "hospital"
|
||||||
case StructureType_InnTavern:
|
case StructureType_InnTavern:
|
||||||
return "inn tavern"
|
return "inn tavern"
|
||||||
case StructureType_Keep:
|
case StructureType_Keep:
|
||||||
|
@ -24795,8 +24927,12 @@ func parseHistoricalEvent(p *util.XMLParser) (*HistoricalEvent, error) {
|
||||||
obj.Details, err = parseHistoricalEventGamble(p)
|
obj.Details, err = parseHistoricalEventGamble(p)
|
||||||
case "hf abducted":
|
case "hf abducted":
|
||||||
obj.Details, err = parseHistoricalEventHfAbducted(p)
|
obj.Details, err = parseHistoricalEventHfAbducted(p)
|
||||||
|
case "hf asked about artifact":
|
||||||
|
obj.Details, err = parseHistoricalEventHfAskedAboutArtifact(p)
|
||||||
case "hf attacked site":
|
case "hf attacked site":
|
||||||
obj.Details, err = parseHistoricalEventHfAttackedSite(p)
|
obj.Details, err = parseHistoricalEventHfAttackedSite(p)
|
||||||
|
case "hf carouse":
|
||||||
|
obj.Details, err = parseHistoricalEventHfCarouse(p)
|
||||||
case "hf confronted":
|
case "hf confronted":
|
||||||
obj.Details, err = parseHistoricalEventHfConfronted(p)
|
obj.Details, err = parseHistoricalEventHfConfronted(p)
|
||||||
case "hf convicted":
|
case "hf convicted":
|
||||||
|
@ -26043,6 +26179,12 @@ func parseHistoricalEventArtifactCreated(p *util.XMLParser) (*HistoricalEventArt
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
obj.ArtifactId = num(data)
|
obj.ArtifactId = num(data)
|
||||||
|
case "entity_id":
|
||||||
|
data, err := p.Value()
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
obj.EntityId = num(data)
|
||||||
case "hist_figure_id":
|
case "hist_figure_id":
|
||||||
data, err := p.Value()
|
data, err := p.Value()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -31822,6 +31964,76 @@ func parseHistoricalEventHfAbductedPlus(p *util.XMLParser, obj *HistoricalEventH
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
func parseHistoricalEventHfAskedAboutArtifact(p *util.XMLParser) (*HistoricalEventHfAskedAboutArtifact, error) {
|
||||||
|
var obj = NewHistoricalEventHfAskedAboutArtifact()
|
||||||
|
|
||||||
|
for {
|
||||||
|
t, n, err := p.Token()
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
switch t {
|
||||||
|
case util.StartElement:
|
||||||
|
switch n {
|
||||||
|
case "artifact_id":
|
||||||
|
data, err := p.Value()
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
obj.ArtifactId = num(data)
|
||||||
|
case "hist_fig_id":
|
||||||
|
data, err := p.Value()
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
obj.HistFigId = num(data)
|
||||||
|
case "site_id":
|
||||||
|
data, err := p.Value()
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
obj.SiteId = num(data)
|
||||||
|
case "structure_id":
|
||||||
|
data, err := p.Value()
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
obj.StructureId = num(data)
|
||||||
|
default:
|
||||||
|
// fmt.Println("unknown field", n)
|
||||||
|
p.Skip()
|
||||||
|
}
|
||||||
|
|
||||||
|
case util.EndElement:
|
||||||
|
obj.CheckFields()
|
||||||
|
return obj, nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
func parseHistoricalEventHfAskedAboutArtifactPlus(p *util.XMLParser, obj *HistoricalEventHfAskedAboutArtifact) (*HistoricalEventHfAskedAboutArtifact, error) {
|
||||||
|
if obj == nil {
|
||||||
|
obj = NewHistoricalEventHfAskedAboutArtifact()
|
||||||
|
}
|
||||||
|
|
||||||
|
for {
|
||||||
|
t, n, err := p.Token()
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
switch t {
|
||||||
|
case util.StartElement:
|
||||||
|
switch n {
|
||||||
|
default:
|
||||||
|
// fmt.Println("unknown field", n)
|
||||||
|
p.Skip()
|
||||||
|
}
|
||||||
|
|
||||||
|
case util.EndElement:
|
||||||
|
obj.CheckFields()
|
||||||
|
return obj, nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
func parseHistoricalEventHfAttackedSite(p *util.XMLParser) (*HistoricalEventHfAttackedSite, error) {
|
func parseHistoricalEventHfAttackedSite(p *util.XMLParser) (*HistoricalEventHfAttackedSite, error) {
|
||||||
var obj = NewHistoricalEventHfAttackedSite()
|
var obj = NewHistoricalEventHfAttackedSite()
|
||||||
|
|
||||||
|
@ -31892,6 +32104,82 @@ func parseHistoricalEventHfAttackedSitePlus(p *util.XMLParser, obj *HistoricalEv
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
func parseHistoricalEventHfCarouse(p *util.XMLParser) (*HistoricalEventHfCarouse, error) {
|
||||||
|
var obj = NewHistoricalEventHfCarouse()
|
||||||
|
|
||||||
|
for {
|
||||||
|
t, n, err := p.Token()
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
switch t {
|
||||||
|
case util.StartElement:
|
||||||
|
switch n {
|
||||||
|
case "feature_layer_id":
|
||||||
|
data, err := p.Value()
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
obj.FeatureLayerId = num(data)
|
||||||
|
case "group_hfid":
|
||||||
|
data, err := p.Value()
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
obj.GroupHfid = append(obj.GroupHfid, num(data))
|
||||||
|
case "site_id":
|
||||||
|
data, err := p.Value()
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
obj.SiteId = num(data)
|
||||||
|
case "structure_id":
|
||||||
|
data, err := p.Value()
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
obj.StructureId = num(data)
|
||||||
|
case "subregion_id":
|
||||||
|
data, err := p.Value()
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
obj.SubregionId = num(data)
|
||||||
|
default:
|
||||||
|
// fmt.Println("unknown field", n)
|
||||||
|
p.Skip()
|
||||||
|
}
|
||||||
|
|
||||||
|
case util.EndElement:
|
||||||
|
obj.CheckFields()
|
||||||
|
return obj, nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
func parseHistoricalEventHfCarousePlus(p *util.XMLParser, obj *HistoricalEventHfCarouse) (*HistoricalEventHfCarouse, error) {
|
||||||
|
if obj == nil {
|
||||||
|
obj = NewHistoricalEventHfCarouse()
|
||||||
|
}
|
||||||
|
|
||||||
|
for {
|
||||||
|
t, n, err := p.Token()
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
switch t {
|
||||||
|
case util.StartElement:
|
||||||
|
switch n {
|
||||||
|
default:
|
||||||
|
// fmt.Println("unknown field", n)
|
||||||
|
p.Skip()
|
||||||
|
}
|
||||||
|
|
||||||
|
case util.EndElement:
|
||||||
|
obj.CheckFields()
|
||||||
|
return obj, nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
func parseHistoricalEventHfConfronted(p *util.XMLParser) (*HistoricalEventHfConfronted, error) {
|
func parseHistoricalEventHfConfronted(p *util.XMLParser) (*HistoricalEventHfConfronted, error) {
|
||||||
var obj = NewHistoricalEventHfConfronted()
|
var obj = NewHistoricalEventHfConfronted()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue