Пример #1
0
        public void AddMob(IFieldObject <Mob> fieldMob)
        {
            State.AddMob(fieldMob);

            Broadcast(session =>
            {
                session.Send(FieldPacket.AddMob(fieldMob));
                session.Send(FieldObjectPacket.LoadMob(fieldMob));
            });
        }
Пример #2
0
        public void AddMob(IFieldObject <Mob> fieldMob)
        {
            State.AddMob(fieldMob);

            fieldMob.Value.OriginSpawn.Value.Mobs.Add(fieldMob);

            Broadcast(session =>
            {
                session.Send(FieldPacket.AddMob(fieldMob));
                session.Send(FieldObjectPacket.LoadMob(fieldMob));
                // TODO: Add spawn buff (ID: 0x055D4DAE)
            });
        }