Add persistent destructible world structures and building kits
This commit is contained in:
@@ -13,6 +13,7 @@ type Protocol struct {
|
||||
}
|
||||
|
||||
type ContentCatalog struct {
|
||||
Building *BuildingContent `json:"building,omitempty"`
|
||||
Combat *CombatContent `json:"combat,omitempty"`
|
||||
Crafting *CraftingContent `json:"crafting,omitempty"`
|
||||
EffectSets []EffectSet `json:"effectSets,omitempty"`
|
||||
@@ -25,6 +26,27 @@ type ContentCatalog struct {
|
||||
Version int64 `json:"version"`
|
||||
}
|
||||
|
||||
type BuildingContent struct {
|
||||
Definitions []BuildingDefinition `json:"definitions"`
|
||||
MaxSlope float64 `json:"maxSlope"`
|
||||
MaxStructures int64 `json:"maxStructures"`
|
||||
ProtectedRadius float64 `json:"protectedRadius"`
|
||||
Range float64 `json:"range"`
|
||||
}
|
||||
|
||||
type BuildingDefinition struct {
|
||||
Depth float64 `json:"depth"`
|
||||
Description string `json:"description"`
|
||||
HP float64 `json:"hp"`
|
||||
Height float64 `json:"height"`
|
||||
ID string `json:"id"`
|
||||
Level int64 `json:"level"`
|
||||
Model string `json:"model"`
|
||||
Name string `json:"name"`
|
||||
Profession string `json:"profession"`
|
||||
Width float64 `json:"width"`
|
||||
}
|
||||
|
||||
type CombatContent struct {
|
||||
Attacks []CombatAttack `json:"attacks"`
|
||||
Loot []LootTable `json:"loot"`
|
||||
@@ -302,6 +324,7 @@ type TitleEffects struct {
|
||||
type ContentChange struct {
|
||||
Attack *CombatAttackDraft `json:"attack,omitempty"`
|
||||
Biome *BiomeDefinitionDraft `json:"biome,omitempty"`
|
||||
Building *BuildingDraft `json:"building,omitempty"`
|
||||
Consumable *GatheringConsumableDraft `json:"consumable,omitempty"`
|
||||
CraftMaterial *CraftMaterialDraft `json:"craftMaterial,omitempty"`
|
||||
CraftProfession *GatheringSkillDraft `json:"craftProfession,omitempty"`
|
||||
@@ -357,6 +380,19 @@ type BiomeDefinitionDraft struct {
|
||||
Weight int64 `json:"weight"`
|
||||
}
|
||||
|
||||
type BuildingDraft struct {
|
||||
Depth float64 `json:"depth"`
|
||||
Description string `json:"description"`
|
||||
HP float64 `json:"hp"`
|
||||
Height float64 `json:"height"`
|
||||
ID *string `json:"id,omitempty"`
|
||||
Level int64 `json:"level"`
|
||||
Model string `json:"model"`
|
||||
Name string `json:"name"`
|
||||
Profession string `json:"profession"`
|
||||
Width float64 `json:"width"`
|
||||
}
|
||||
|
||||
type GatheringConsumableDraft struct {
|
||||
Description string `json:"description"`
|
||||
ID *string `json:"id,omitempty"`
|
||||
@@ -581,7 +617,9 @@ type Chunk struct {
|
||||
}
|
||||
|
||||
type Entity struct {
|
||||
Depth *float64 `json:"depth,omitempty"`
|
||||
HP float64 `json:"hp"`
|
||||
Height *float64 `json:"height,omitempty"`
|
||||
ID string `json:"id"`
|
||||
Kind string `json:"kind"`
|
||||
MaxHP float64 `json:"maxHp"`
|
||||
@@ -593,6 +631,7 @@ type Entity struct {
|
||||
ResourceID *string `json:"resourceId,omitempty"`
|
||||
SkillID *string `json:"skillId,omitempty"`
|
||||
State string `json:"state"`
|
||||
Width *float64 `json:"width,omitempty"`
|
||||
}
|
||||
|
||||
type Vec3 struct {
|
||||
|
||||
Reference in New Issue
Block a user