示例#1
0
 public SRPlayer(SRModel value) : base(value)
 {
 }
示例#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);
        }
示例#3
0
 public SRNpc(SRModel value) : base(value)
 {
 }