Example #1
0
 // Add an animation
 public void AddAnimation(CreatureModule.CreatureAnimation animation_in)
 {
     animations[animation_in.name] = animation_in;
     active_blend_run_times[animation_in.name] = animation_in.start_time;
 }
Example #2
0
        public CreatureManager(CreatureModule.Creature target_creature_in)
        {
            target_creature = target_creature_in;
            is_playing = false;
            run_time = 0;
            time_scale = 30.0f;
            blending_factor = 0;
            region_offsets_z = 0.01f;
            animations = new Dictionary<string, CreatureAnimation> ();
            bones_override_callback = null;
            region_override_alphas = new Dictionary<string, float> ();

            blend_render_pts = new List<List<float> >();
            blend_render_pts.Add(new List<float> ());
            blend_render_pts.Add(new List<float> ());

            active_blend_animation_names = new List<string> ();
            active_blend_animation_names.Add ("");
            active_blend_animation_names.Add ("");

            do_auto_blending = false;
            auto_blend_delta = 0.0f;

            auto_blend_names = new List<string>();
            auto_blend_names.Add("");
            auto_blend_names.Add("");

            active_blend_run_times = new Dictionary<string, float>();

            should_loop = true;
        }