Exemplo n.º 1
0
        private WasdEditorCameraBehaviour.Config.EditorConfig ParseEditorConfig(ConfigNode node)
        {
            WasdEditorCameraBehaviour.Config.EditorConfig result = new WasdEditorCameraBehaviour.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);
        }
        private WasdEditorCameraBehaviour.Config.EditorConfig ParseEditorConfig(ConfigNode node)
        {
            WasdEditorCameraBehaviour.Config.EditorConfig result = new WasdEditorCameraBehaviour.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;
        }