public void Deserialize(EntityPropsItem entity_props, JObject root) { entity_props.respawns = root["respawns"].GetBool(); entity_props.super = root["super"].GetBool(); entity_props.secret = root["secret"].GetBool(); entity_props.index = root["index"].GetInt(); }
// ITEM public void Serialize(EntityPropsItem entity_props, JObject root) { root["respawns"] = entity_props.respawns.ToString(); root["super"] = entity_props.super.ToString(); root["secret"] = entity_props.secret.ToString(); root["index"] = entity_props.index.ToString(); }