Skip to content

New ways of creating TraitData objects. #25

@TacoConKvass

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);

Metadata

Metadata

Assignees

Labels

additionAddition suggestion

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions