Beispiel #1
0
        public void SetStance(Player target, Stance s)
        {
            var oldStance = Stances[target];

            Stances[target] = s;
            target.Shroud.UpdatePlayerStance(World, this, oldStance, s);
            Shroud.UpdatePlayerStance(World, target, oldStance, s);

            foreach (var nsc in World.ActorsWithTrait <INotifyStanceChanged>())
            {
                nsc.Trait.StanceChanged(nsc.Actor, this, target, oldStance, s);
            }
        }