﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CupCake.Physics.EEPhysics;
using CupCake.Players;

namespace CupCake.Physics
{
    public static class PlayerExtensions
    {
        public static PhysicsPlayer GetPhysicsPlayer(this Player p)
        {
            return p.Get<PhysicsPlayer>("PhysicsPlayer");
        }

        internal static void SetPhysicsPlayer(this Player p, PhysicsPlayer physicsPlayer)
        {
            p.Set("PhysicsPlayer", physicsPlayer);
        }
    }
}
