Class "DanmakuJSONFile"

Namespace: VirtualDropkick.DanmakuEngine.Unity
Inherits from: UnityEngine.ScriptableObject

Summary

Stores a compiled DanmakuJSON-file


Static Methods

DanmakuJSONFile CreateNew()
Creates a new DanmakuJSONFile


Public Properties

string FileContent
Returns the DanmakuJSON-source of this file

bool IsCompiled
Indicates if this DanmakuJSON-file has been compiled

IDictionary<string, string> Properties
Returns the custom-properties which are defined in the DanmakuJSON-file

string[] PropertyNames
Returns the names of all custom-properties which are defined in the DanmakuJSON-file


Public Methods

void Compile(string danmakuJson)
Compiles the given DanmakuJSON-string

string GetProperty(string name, string fallback="")
Returns the value of the custom-property with the given name (fallback if it was not found)

bool HasProperty(string name)
Returns true if this DanmakuJSON-file has a custom-property with the given name - otherwise false


Buy the Danmaku Engine plugin

Leave a comment