<commit_before>﻿using UnityEngine;
using System.Collections.Generic;
using BZFlag.IO.Elements;
using BZFlag.IO.Elements.Shapes;

public class BZWWaterLevel : BZWBasicObject
{
    public List<string> Attributes = new List<string>();

    // Use this for initialization
    void Start()
    {

    }

    // Update is called once per frame
    void Update()
    {

    }

    public virtual void FromBZWObject(BZFlag.IO.Elements.WaterLevel obj)
    {
        Name = obj.Name;

        this.transform.localPosition = new Vector3(0, obj.Height, 0);

        Attributes = obj.Attributes;
        GUID = obj.GUID;
    }

    public override void Setup(BasicObject elementObject)
    {
        FromBZWObject(elementObject as WaterLevel);<commit_msg>properly save a water level object<commit_after>﻿using UnityEngine;
using System.Collections.Generic;
using BZFlag.IO.Elements;
using BZFlag.IO.Elements.Shapes;

public class BZWWaterLevel : BZWBasicObject
{
    public List<string> Attributes = new List<string>();

    // Use this for initialization
    void Start()
    {

    }

    // Update is called once per frame
    void Update()
    {

    }

	public override BasicObject ToBZWObject()
	{
		var water = new WaterLevel();
		water.Attributes = Attributes;
		water.Height = transform.localPosition.y;

		return water;
	}

	public virtual void FromBZWObject(BZFlag.IO.Elements.WaterLevel obj)
    {
        Name = obj.Name;

        this.transform.localPosition = new Vector3(0, obj.Height, 0);

        Attributes = obj.Attributes;
        GUID = obj.GUID;
    }

    public override void Setup(BasicObject elementObject)
    {
        FromBZWObject(elementObject as WaterLevel);
{'fraction_non_alphanumeric': 0.09117997616209773, 'fraction_numerical': 0.003575685339690107, 'mean_word_length': 2.913752913752914, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5219635', 'n_tokens_mistral': 522, 'n_tokens_neox': 498, 'n_words': 128}