public static glTF_VCAST_vci_PlayerSpawnPointRestriction glTF_VCAST_vci_player_spawn_point_restriction_Deserializevci_playerSpawnPointRestriction(JsonNode parsed) { var value = new glTF_VCAST_vci_PlayerSpawnPointRestriction(); foreach (var kv in parsed.ObjectItems()) { var key = kv.Key.GetString(); if (key == "rangeOfMovementRestriction") { value.rangeOfMovementRestriction = kv.Value.GetString(); continue; } if (key == "limitRadius") { value.limitRadius = kv.Value.GetSingle(); continue; } if (key == "limitRectLeft") { value.limitRectLeft = kv.Value.GetSingle(); continue; } if (key == "limitRectRight") { value.limitRectRight = kv.Value.GetSingle(); continue; } if (key == "limitRectForward") { value.limitRectForward = kv.Value.GetSingle(); continue; } if (key == "limitRectBackward") { value.limitRectBackward = kv.Value.GetSingle(); continue; } if (key == "postureRestriction") { value.postureRestriction = kv.Value.GetString(); continue; } if (key == "seatHeight") { value.seatHeight = kv.Value.GetSingle(); continue; } } return(value); }
public static void Serialize_vci_playerSpawnPointRestriction(JsonFormatter f, glTF_VCAST_vci_PlayerSpawnPointRestriction value) { f.BeginMap(); if (!string.IsNullOrEmpty(value.rangeOfMovementRestriction)) { f.Key("rangeOfMovementRestriction"); f.Value(value.rangeOfMovementRestriction); } if (true) { f.Key("limitRadius"); f.Value(value.limitRadius); } if (true) { f.Key("limitRectLeft"); f.Value(value.limitRectLeft); } if (true) { f.Key("limitRectRight"); f.Value(value.limitRectRight); } if (true) { f.Key("limitRectForward"); f.Value(value.limitRectForward); } if (true) { f.Key("limitRectBackward"); f.Value(value.limitRectBackward); } if (!string.IsNullOrEmpty(value.postureRestriction)) { f.Key("postureRestriction"); f.Value(value.postureRestriction); } if (true) { f.Key("seatHeight"); f.Value(value.seatHeight); } f.EndMap(); }