Table of Contents

Class AssetCategory

Namespace
Vintagestory.API.Common
Assembly
VintagestoryAPI.dll
public class AssetCategory
Inheritance
AssetCategory
Inherited Members

Constructors

AssetCategory(string, bool, EnumAppSide)

public AssetCategory(string code, bool AffectsGameplay, EnumAppSide SideType)

Parameters

code string
AffectsGameplay bool
SideType EnumAppSide

Fields

blocktypes

public static AssetCategory blocktypes

Field Value

AssetCategory

categories

public static Dictionary<string, AssetCategory> categories

Field Value

Dictionary<string, AssetCategory>

config

public static AssetCategory config

Field Value

AssetCategory

dialog

public static AssetCategory dialog

Field Value

AssetCategory

entities

public static AssetCategory entities

Field Value

AssetCategory

itemtypes

public static AssetCategory itemtypes

Field Value

AssetCategory

lang

public static AssetCategory lang

Field Value

AssetCategory

music

public static AssetCategory music

Field Value

AssetCategory

patches

public static AssetCategory patches

Field Value

AssetCategory

recipes

public static AssetCategory recipes

Field Value

AssetCategory

shaderincludes

public static AssetCategory shaderincludes

Field Value

AssetCategory

shaders

public static AssetCategory shaders

Field Value

AssetCategory

shapes

public static AssetCategory shapes

Field Value

AssetCategory

sounds

public static AssetCategory sounds

Field Value

AssetCategory

textures

public static AssetCategory textures

Field Value

AssetCategory

worldgen

public static AssetCategory worldgen

Field Value

AssetCategory

worldproperties

public static AssetCategory worldproperties

Field Value

AssetCategory

Properties

AffectsGameplay

Temporary solution to not change block types. Will be changed

public bool AffectsGameplay { get; }

Property Value

bool

Code

Path and name

public string Code { get; }

Property Value

string

SideType

Determines wether it will be used on server, client or both.

public EnumAppSide SideType { get; }

Property Value

EnumAppSide

Methods

FromCode(string)

Gets the asset category by code name

public static AssetCategory FromCode(string code)

Parameters

code string

The code name for the asset category.

Returns

AssetCategory

An asset category.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.