Add rounded fantasy character and admin visual creators

This commit is contained in:
dingo
2026-09-11 11:50:52 -04:00
parent aaf0a0c89b
commit bd220ba1df
32 changed files with 1221 additions and 124 deletions
+107 -73
View File
@@ -29,6 +29,7 @@ type ContentCatalog struct {
Stats ContentStatsRules `json:"stats"`
Titles []TitleDefinition `json:"titles"`
Version int64 `json:"version"`
Visuals []VisualPreset `json:"visuals,omitempty"`
}
type BuildingContent struct {
@@ -94,22 +95,36 @@ type LootEntry struct {
}
type MobDefinition struct {
AggroRange float64 `json:"aggroRange"`
AttackID string `json:"attackId"`
Behavior string `json:"behavior"`
Damage float64 `json:"damage"`
Defence float64 `json:"defence"`
Description string `json:"description"`
HP float64 `json:"hp"`
ID string `json:"id"`
LeashRange float64 `json:"leashRange"`
Level int64 `json:"level"`
LootID string `json:"lootId"`
Model string `json:"model"`
Name string `json:"name"`
ScalePerDay float64 `json:"scalePerDay"`
Speed float64 `json:"speed"`
XP int64 `json:"xp"`
AggroRange float64 `json:"aggroRange"`
Appearance *Appearance `json:"appearance,omitempty"`
AttackID string `json:"attackId"`
Behavior string `json:"behavior"`
Damage float64 `json:"damage"`
Defence float64 `json:"defence"`
Description string `json:"description"`
HP float64 `json:"hp"`
ID string `json:"id"`
LeashRange float64 `json:"leashRange"`
Level int64 `json:"level"`
LootID string `json:"lootId"`
Model string `json:"model"`
Name string `json:"name"`
ScalePerDay float64 `json:"scalePerDay"`
Speed float64 `json:"speed"`
XP int64 `json:"xp"`
}
type Appearance struct {
Accent string `json:"accent"`
Detail float64 `json:"detail"`
Family string `json:"family"`
Height float64 `json:"height"`
Primary string `json:"primary"`
Secondary string `json:"secondary"`
Seed int64 `json:"seed"`
Variant int64 `json:"variant"`
Version int64 `json:"version"`
Width float64 `json:"width"`
}
type MobSpawn struct {
@@ -224,19 +239,20 @@ type ItemUseEffect struct {
}
type ResourceDefinition struct {
Amount int64 `json:"amount"`
Biomes []string `json:"biomes"`
Density int64 `json:"density"`
Description string `json:"description"`
ID string `json:"id"`
Model string `json:"model"`
Name string `json:"name"`
Output string `json:"output"`
RequiredLevel int64 `json:"requiredLevel"`
RespawnSeconds float64 `json:"respawnSeconds"`
Seconds float64 `json:"seconds"`
SkillID string `json:"skillId"`
XP int64 `json:"xp"`
Amount int64 `json:"amount"`
Appearance *Appearance `json:"appearance,omitempty"`
Biomes []string `json:"biomes"`
Density int64 `json:"density"`
Description string `json:"description"`
ID string `json:"id"`
Model string `json:"model"`
Name string `json:"name"`
Output string `json:"output"`
RequiredLevel int64 `json:"requiredLevel"`
RespawnSeconds float64 `json:"respawnSeconds"`
Seconds float64 `json:"seconds"`
SkillID string `json:"skillId"`
XP int64 `json:"xp"`
}
type ItemDefinition struct {
@@ -340,6 +356,13 @@ type TitleEffects struct {
MoveSpeed float64 `json:"moveSpeed"`
}
type VisualPreset struct {
Appearance Appearance `json:"appearance"`
Description string `json:"description"`
ID string `json:"id"`
Name string `json:"name"`
}
type ContentChange struct {
Attack *CombatAttackDraft `json:"attack,omitempty"`
Biome *BiomeDefinitionDraft `json:"biome,omitempty"`
@@ -367,6 +390,7 @@ type ContentChange struct {
Stats *ContentStatsRules `json:"stats,omitempty"`
TargetID *string `json:"targetId,omitempty"`
Title *TitleDraft `json:"title,omitempty"`
Visual *VisualPresetDraft `json:"visual,omitempty"`
Weapon *GatheringSkillDraft `json:"weapon,omitempty"`
}
@@ -481,22 +505,23 @@ type LootTableDraft struct {
}
type MobDefinitionDraft struct {
AggroRange float64 `json:"aggroRange"`
AttackID string `json:"attackId"`
Behavior string `json:"behavior"`
Damage float64 `json:"damage"`
Defence float64 `json:"defence"`
Description string `json:"description"`
HP float64 `json:"hp"`
ID *string `json:"id,omitempty"`
LeashRange float64 `json:"leashRange"`
Level int64 `json:"level"`
LootID string `json:"lootId"`
Model string `json:"model"`
Name string `json:"name"`
ScalePerDay float64 `json:"scalePerDay"`
Speed float64 `json:"speed"`
XP int64 `json:"xp"`
AggroRange float64 `json:"aggroRange"`
Appearance *Appearance `json:"appearance,omitempty"`
AttackID string `json:"attackId"`
Behavior string `json:"behavior"`
Damage float64 `json:"damage"`
Defence float64 `json:"defence"`
Description string `json:"description"`
HP float64 `json:"hp"`
ID *string `json:"id,omitempty"`
LeashRange float64 `json:"leashRange"`
Level int64 `json:"level"`
LootID string `json:"lootId"`
Model string `json:"model"`
Name string `json:"name"`
ScalePerDay float64 `json:"scalePerDay"`
Speed float64 `json:"speed"`
XP int64 `json:"xp"`
}
type PowerDraft struct {
@@ -530,19 +555,20 @@ type RequirementSetDraft struct {
}
type ResourceDefinitionDraft struct {
Amount int64 `json:"amount"`
Biomes []string `json:"biomes"`
Density int64 `json:"density"`
Description string `json:"description"`
ID *string `json:"id,omitempty"`
Model string `json:"model"`
Name string `json:"name"`
Output string `json:"output"`
RequiredLevel int64 `json:"requiredLevel"`
RespawnSeconds float64 `json:"respawnSeconds"`
Seconds float64 `json:"seconds"`
SkillID string `json:"skillId"`
XP int64 `json:"xp"`
Amount int64 `json:"amount"`
Appearance *Appearance `json:"appearance,omitempty"`
Biomes []string `json:"biomes"`
Density int64 `json:"density"`
Description string `json:"description"`
ID *string `json:"id,omitempty"`
Model string `json:"model"`
Name string `json:"name"`
Output string `json:"output"`
RequiredLevel int64 `json:"requiredLevel"`
RespawnSeconds float64 `json:"respawnSeconds"`
Seconds float64 `json:"seconds"`
SkillID string `json:"skillId"`
XP int64 `json:"xp"`
}
type MobSpawnDraft struct {
@@ -568,6 +594,13 @@ type TitleDraft struct {
Scope string `json:"scope"`
}
type VisualPresetDraft struct {
Appearance Appearance `json:"appearance"`
Description string `json:"description"`
ID *string `json:"id,omitempty"`
Name string `json:"name"`
}
type ContentPreview struct {
BasedOnVersion int64 `json:"basedOnVersion"`
ProposedVersion int64 `json:"proposedVersion"`
@@ -635,21 +668,22 @@ type HouseSummary 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"`
Model *string `json:"model,omitempty"`
Name string `json:"name"`
Position Vec3 `json:"position"`
Radius *float64 `json:"radius,omitempty"`
RequiredLevel *int64 `json:"requiredLevel,omitempty"`
ResourceID *string `json:"resourceId,omitempty"`
SkillID *string `json:"skillId,omitempty"`
State string `json:"state"`
Width *float64 `json:"width,omitempty"`
Appearance *Appearance `json:"appearance,omitempty"`
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"`
Model *string `json:"model,omitempty"`
Name string `json:"name"`
Position Vec3 `json:"position"`
Radius *float64 `json:"radius,omitempty"`
RequiredLevel *int64 `json:"requiredLevel,omitempty"`
ResourceID *string `json:"resourceId,omitempty"`
SkillID *string `json:"skillId,omitempty"`
State string `json:"state"`
Width *float64 `json:"width,omitempty"`
}
type Vec3 struct {