public SRFortressStruct(SRNpc value) : base(value)
 {
 }
Beispiel #2
0
        public static SREntity Create(uint ID)
        {
            SREntity obj = new SREntity(ID);

            if (obj.isSkillZone())
            {
                return(new SRSkillZone());
            }
            if (obj.isModel())
            {
                SRModel model = new SRModel(obj);
                obj = model;

                if (model.isPlayer())
                {
                    SRPlayer player = new SRPlayer(model);
                    obj = player;
                }
                else if (model.isNPC())
                {
                    SRNpc npc = new SRNpc(model);
                    obj = npc;

                    if (npc.isMob())
                    {
                        SRMob mob = new SRMob(npc);
                        obj = mob;
                    }
                    else if (npc.isGuide())
                    {
                        SRGuide guide = new SRGuide(npc);
                        obj = guide;
                    }
                    else if (npc.isCOS())
                    {
                        SRCoService cos = new SRCoService(npc);
                        obj = cos;

                        if (cos.isAttackPet())
                        {
                            SRAttackPet pet = new SRAttackPet(cos);
                            obj = pet;
                        }
                        else if (cos.isPickPet())
                        {
                            SRPickPet pet = new SRPickPet(cos);
                            obj = pet;
                        }
                    }
                    else if (npc.isFortressStruct())
                    {
                        SRFortressCos fCos = new SRFortressCos(npc);
                        obj = fCos;
                    }
                    else if (npc.isFortressStruct())
                    {
                        SRFortressStruct fStruct = new SRFortressStruct(npc);
                        obj = fStruct;
                    }
                }
            }
            else if (obj.isDrop())
            {
                SRDrop drop = new SRDrop(obj);
                obj = drop;
            }
            else if (obj.isTeleport())
            {
                SRTeleport teleport = new SRTeleport(obj);
                obj = teleport;
            }
            return(obj);
        }
Beispiel #3
0
 public SRGuide(SRNpc value) : base(value)
 {
 }
Beispiel #4
0
 public SRMob(SRNpc value) : base(value)
 {
 }
 public SRFortressCos(SRNpc value) : base(value)
 {
 }
Beispiel #6
0
 public SRCoService(SRNpc value) : base(value)
 {
 }