Command Palette

Search for a command to run...

Назад к скиллам
скилл № 69720

SS14 ECS Prototypes

YAML prototypes in Space Station 14 — entity definitions, field inheritance, prototype classes, YAML linter, naming conventions, and localization

БесплатноБез исполняемых скриптов
makura-gamesот makura-games★ 74 звезды на GitHub

Установить SS14 ECS Prototypes в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Prototypes - prototypes in ECS

Limit of responsibility

This skill covers prototype mechanics: YAML structure, inheritance, DataField mapping, prototype types, and validation. Strict naming standards (prototype ID, fork prefixes, English fallback fields, ent-* and kebab-case keys) are maintained in ss14-naming-conventions. If the naming example differs from ss14-naming-conventions, use ss14-naming-conventions.

What is Prototype

A prototype is a YAML data definition that the engine loads upon initialization. Prototypes describe entities, recipes, reagents, and other game objects. Entity prototypes determine what components and with what values ​​the entity will have when created.

ID format - quick reminder (see ss14-naming-conventions)

All prototype identifiers are mandatory recorded in CamelCase:

# Right
- type: entity
  id: Scp096

- type: entity
  id: BaseScp

- type: entity
  id: MobCombat

- type: entity
  id: Scp096CryOut

- type: entity
  id: XenoArchTriggerHeat

- type: entity
  id: WeaponArcClaw
# Wrong
- type: entity
  id: scp_096          # underscores

- type: entity
  id: scp-096          # hyphens

- type: entity
  id: SCP096           # all uppercase

- type: entity
  id: scp096           # all lowercase

Entity prototype - basic structure

- type: entity
  id: MyEntity
  parent: BaseParent        # Inherits from a single parent
  suffix: Debug             # Spawn menu marker (optional)
  components:
  - type: Sprite
    sprite: path/to/sprite.rsi
    layers:
    - state: idle
  - type: MyAction # Original name is MyActionComponent. The `Component` suffix is omitted in the prototype!
    speed: 5.0
    activationSound:
      path: /Audio/sound.ogg

Prototype inheritance

Single inheritance

- type: entity
  id: BaseAnimal
  abstract: true           # Abstract — cannot be spawned directly
  components:
  - type: MobState
  - type: Damageable

- type: entity
  id: Cat
  parent: BaseAnimal       # Inherits all components from BaseAnimal
  components:
  - type: Sprite
    sprite: animals/cat.rsi

Multiple inheritance

- type: entity
  id: Scp096
  parent:
  - BaseScp                # First parent has the highest priority on conflicts
  - MobCombat
  - MobBloodstream
  - StripableInventoryBase
  # Local fields and components have priority over every parent.
  components:
  - type: Scp096
    # ...specific fields

The order of the parents matters. Parent compositions are applied in the listed order, while already composed values are treated as child values for the next parent. Therefore, when multiple parents define the same component field, the first parent wins. Fields and components declared directly on the child prototype have priority over all parents.

Field inheritance system

By default, a child prototype field completely overwrites the parent value. This behavior is modified by the attributes:

[AlwaysPushInheritance] — merging

Instead of overwriting, it merges the parent and child data. Merging works recursively at the level of YAML mappings and sequences.

# Parent
- type: entity
  id: BaseEntity
  abstract: true
  components:              # `components` is marked with [AlwaysPushInheritance]
  - type: Sprite
    sprite: base.rsi

# Descendant
- type: entity
  id: ChildEntity
  parent: BaseEntity
  components:
  - type: MyComponent      # ADDED to the parent components
    value: 5

Result: ChildEntity has both Sprite (from its parent) and MyComponent (its own).

Main Applications:

  • components in EntityPrototype - child components merge with parent ones
  • Action lists (ActionGrantComponent.actions) - child actions are added to the parent ones
  • Recipe lists (LatheRecipePackPrototype) - child recipes are added

[NeverPushInheritance] - inheritance blocking

The field value is never passed from parent to child. The child receives the default value.

[NeverPushInheritance]
public bool Abstract { get; private set; }  // abstract is not inherited

[NeverPushInheritance]
public HashSet<ProtoId<EntityCategoryPrototype>>? Categories;  // categories are not inherited

Used for:

  • abstract - the child is not abstract, even if the parent is abstract
  • categories — categories are individual for each prototype
  • Unique identifiers - IDs, visual data that should not cascade

[AbstractDataField] - abstract prototype

Marks the abstract field in the prototype. Abstract prototypes:

  • Not indexed via IPrototypeManager
  • Not displayed when listing prototypes
  • Serve only as a source of data for inheritance
- type: entity
  id: BaseMob
  abstract: true       # This prototype is only a template
  components:
  - type: MobState
  - type: Damageable

[ParentDataField] - parent field

Marks a field containing a reference to parent prototypes. In EntityPrototype this field is Parents.

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл SS14 ECS Prototypes?

YAML prototypes in Space Station 14 — entity definitions, field inheritance, prototype classes, YAML linter, naming conventions, and localization

Как установить скилл SS14 ECS Prototypes?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл SS14 ECS Prototypes запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить SS14 ECS Prototypes с