Exemplo n.º 1
0
 public void SpawnMonster(string creatureName, HybrasylSpawn spawn, int x, int y)
 {
     if (Game.World.WorldData.TryGetValue(creatureName, out Xml.Creature creature))
     {
         var baseMob = new Monster(creature, spawn.Spawn, Map.Id);
         baseMob.X = (byte)x;
         baseMob.Y = (byte)y;
         World.ControlMessageQueue.Add(new HybrasylControlMessage(ControlOpcodes.MonolithSpawn, baseMob, Map));
     }
 }
Exemplo n.º 2
0
        /// <summary>
        /// do not use.
        /// </summary>
        /// <param name="creaturename"></param>
        /// <param name="spawnname"></param>
        /// <returns></returns>
        public HybrasylSpawn NewSpawn(string creaturename, string spawnname)
        {
            var spawn = new HybrasylSpawn(creaturename, spawnname);

            return(spawn);
        }