private Config.EditorConfig ParseEditorConfig(ConfigNode node) { Config.EditorConfig result = new Config.EditorConfig(); result.initialPosition = ConfigNode.ParseVector3(node.GetValue("initialPosition")); result.initialPitch = Single.Parse(node.GetValue("initialPitch")); result.initialYaw = Single.Parse(node.GetValue("initialYaw")); result.bounds = ParseBounds(node.GetNode("BOUNDS")); return(result); }
private Config.EditorConfig ParseEditorConfig(ConfigNode node) { Config.EditorConfig result = new Config.EditorConfig (); try { result.initialPosition = ConfigNode.ParseVector3 (node.GetValue ("initialPosition")); } catch { } try { result.initialPitch = Single.Parse (node.GetValue ("initialPitch")); } catch { } try { result.initialYaw = Single.Parse (node.GetValue ("initialYaw")); } catch { } try { result.bounds = ParseBounds (node.GetNode ("BOUNDS")); } catch { } return result; }