Zepheus.Zone.CommandHandler.SpawnMob C# (CSharp) Method

SpawnMob() private method

private SpawnMob ( ZoneCharacter character ) : void
character Zepheus.Zone.Game.ZoneCharacter
return void
        private void SpawnMob(ZoneCharacter character, params string[] param)
        {
            ushort id = ushort.Parse(param[1]);
            if (DataProvider.Instance.MobsByID.ContainsKey(id))
            {
                Mob mob = new Mob((ushort)(param.Length == 2 ? id : 1045), new Vector2(character.Position));
                character.Map.FullAddObject(mob);
            }
            else character.DropMessage("Monster ID not found.");
        }