s&
newspaper
About
info
About s&box
newspaper
Latest News
published_with_changes
Changes
map
Roadmap
monitoring
Metrics
games
Games
sports_esports
Browse Games
rocket
Discover Games
business_center
Workshop
sports_esports
Games
landscape
Maps
chair
Models
texture
Materials
apparel
Clothing
construction
More..
forum
Forum
docs
Docs
docs
Documentation
dashboard
Api Reference
school
Tutorials
input
Log in with Steam
chevron_left
Change Language
简体中文
English
Русский
Español
Português-Brasil
Deutsch
日本語
Français
Polski
Türkçe
한국어
Pirate
Italiano
ไทย
繁體中文
Українська
Čeština
Nederlands
Magyar
Dansk
Suomi
Svenska
Norsk
Ελληνικά
Română
Български
Tiếng Việt
Bahasa Indonesia
Español-Latinoamérica
العربية
Api
Editor Classes
MetaData
chevron_left
Editor Classes
class
MetaData
search
Properties
data_object
FilePath
Methods
functions
Get
functions
GetBool
functions
GetElement
functions
GetFloat
functions
GetInt
functions
GetString
functions
Set
MetaData
A class to CRUD json files. This should probably be a generic class since it seems like we might want to do this with stuff other than meta files. But there's no need for that right now, so lets leave it simple.
class
Editor
.
Sandbox.Tools
data_object
Properties
1
FilePath
string
File path to the metadata file.
functions
Methods
7
Get
(
keyName
,
defaultValue
)
T
GetBool
(
keyName
,
defaultValue
)
bool
GetElement
(
keyName
)
Nullable`1
GetFloat
(
keyName
,
defaultValue
)
float
GetInt
(
keyName
,
defaultValue
)
int
GetString
(
keyName
,
defaultValue
)
string
Set
(
name
,
value
)
Set a value in the metadata file. If the value is null, the key will be removed.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.