<commit_before>﻿using Server.MeshedObjects;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;

namespace Pandaros.Settlers.Managers
{
    public static class AnimationManager
    {
        public const string SLINGBULLET = "slingbullet";
        public const string ARROW = "arrow";
        public const string CROSSBOWBOLT = "crossbowbolt";
        public const string LEADBULLET = "leadbullet";

        public class AnimatedObject
        {
            public string Name { get; private set; }

            public MeshedObjectTypeSettings Settings { get; private set; }
            public MeshedObjectType ObjType { get; private set; }

            public AnimatedObject(string key, string meshPath, string textureMapping)
            {
                Settings = new MeshedObjectTypeSettings(key, meshPath, textureMapping);
                ObjType = MeshedObjectType.Register(Settings);
            }

            public void SendMoveToInterpolated(Vector3 start, Vector3 end, float deltaTime = 1f)
            {
                (new ClientMeshedObject(ObjType)).SendMoveToInterpolated(start, end, deltaTime, Settings);
            }
        }

        public static Dictionary<string, AnimatedObject> AnimatedObjects { get; private set; } = new Dictionary<string, AnimatedObject>(StringComparer.OrdinalIgnoreCase);
<commit_msg>No need to send settings every time.<commit_after>﻿using Server.MeshedObjects;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;

namespace Pandaros.Settlers.Managers
{
    public static class AnimationManager
    {
        public const string SLINGBULLET = "slingbullet";
        public const string ARROW = "arrow";
        public const string CROSSBOWBOLT = "crossbowbolt";
        public const string LEADBULLET = "leadbullet";

        public class AnimatedObject
        {
            public string Name { get; private set; }
            
            public MeshedObjectType ObjType { get; private set; }

            public AnimatedObject(string key, string meshPath, string textureMapping)
            {
                ObjType = MeshedObjectType.Register(new MeshedObjectTypeSettings(key, meshPath, textureMapping));
            }

            public void SendMoveToInterpolated(Vector3 start, Vector3 end, float deltaTime = 1f)
            {
                (new ClientMeshedObject(ObjType)).SendMoveToInterpolated(start, end, deltaTime);
            }
        }

        public static Dictionary<string, AnimatedObject> AnimatedObjects { get; private set; } = new Dictionary<string, AnimatedObject>(StringComparer.OrdinalIgnoreCase);

{'fraction_non_alphanumeric': 0.07145515444733903, 'fraction_numerical': 0.002232973576479345, 'mean_word_length': 2.7752808988764044, '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': '6078800', 'n_tokens_mistral': 707, 'n_tokens_neox': 684, 'n_words': 193}