Skip to content

New ways of creating TraitData objects. #25

Description

@TacoConKvass

What is the addition?

New ways of creating TraitData objects.

Why?

TraitData inherits from ScriptableObject. For why that is an issue, see #15

Example usage

TraitData CustomData;

// Option 1
CustomData = new Traits.Data() {
    Name = "...",
    Rarity = ...,
    GoldBonus = ...,
    // and so on...
};

// Option 2
CustomData = new Traits.Data("Name", rarity, goldBonus, ...);

// Option 3
CustomData = Traits.DataFromJson(jsonString);

// Option 4
CustomData = Traits.DataFromJson(pathToJson);

Activity

  1. self-assigned this
    on Aug 19, 2025
  2. added this to the 2.1 milestone on Aug 19, 2025
  3. modified the milestones: 2.1, 2.2 on Mar 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

additionAddition suggestion

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions