Ejemplo n.º 1
0
        public void RemoveAgent(Creature creature)
        {
            _agents.Remove(creature);

                        if (creature.Created)
                        {
                                creature.Destroy();
                        }
        }
Ejemplo n.º 2
0
        public void AddAgent(Creature creature)
        {
            _agents.Add(creature);

                        if (Game.State == GameState.Playing)
                        {
                                creature.Create();
                        }
        }
Ejemplo n.º 3
0
        public void Cast(uint slot, Creature target)
        {
            string name = target.Name;
            Guid entityId = Entity.GetIdOfCreature(target);

            Send("cast", o =>
            {
                o.slot = slot;
                o.target = entityId;
            });
        }
Ejemplo n.º 4
0
 public Dialog(string body, Creature sender = null)
 {
     _body = body;
                 _sender = sender;
 }