Esempio n. 1
0
 public FoundItemContract(Hashtable hash, ContractManager manager)
     : base(hash, manager)
 {
     m_ItemId      = hash.GetValue <string>((int)SPC.ItemId, string.Empty);
     m_GroupId     = hash.GetValue <string>((int)SPC.Group, string.Empty);
     m_TargetWorld = hash.GetValue <string>((int)SPC.TargetWorld, string.Empty);
 }
Esempio n. 2
0
 public FoundItemContract(string id, int stage, string sourceWorld, ContractManager manager, string itemId, string groupId, string targetWorld)
     : base(id, stage, sourceWorld, ContractCategory.foundItem, manager)
 {
     m_ItemId      = itemId;
     m_GroupId     = groupId;
     m_TargetWorld = targetWorld;
 }
Esempio n. 3
0
 public ItemDeliveryContract(string id, int stage,
                             string sourceWorld, ContractManager manager, string itemId, string targetWorld)
     : base(id, stage, sourceWorld, ContractCategory.itemDelivery, manager)
 {
     m_ItemId      = itemId;
     m_TargetWorld = targetWorld;
 }
Esempio n. 4
0
 public KillNPCGroupContract(string id, int stage, string sourceWorld, ContractManager owner, int cnt, string grpName, string targetWorld)
     : base(id, stage, sourceWorld, ContractCategory.killNPCGroup, owner)
 {
     m_Count        = cnt;
     m_BotGroupName = grpName;
     m_Counter      = 0;
     m_TargetWorld  = targetWorld;
 }
Esempio n. 5
0
 public KillNPCGroupContract(Hashtable hash, ContractManager manager)
     : base(hash, manager)
 {
     m_Count        = hash.GetValue <int>((int)SPC.Count, 0);
     m_BotGroupName = hash.GetValue <string>((int)SPC.Group, string.Empty);
     m_Counter      = hash.GetValue <int>((int)SPC.Counter, 0);
     m_TargetWorld  = hash.GetValue <string>((int)SPC.TargetWorld, string.Empty);
 }
 public ExploreLocationContract(string id, int stage,
                                string sourceWorld, ContractManager manager, string locationName,
                                string targetWorld)
     : base(id, stage, sourceWorld, ContractCategory.exploreLocation, manager)
 {
     m_LocationName = locationName;
     m_TargetWorld  = targetWorld;
 }
Esempio n. 7
0
 public BaseContract(string id,
                     int stage,
                     string sourceWorld,
                     ContractCategory category,
                     ContractManager contractOwner)
 {
     m_Id            = id;
     m_State         = ContractState.proposed;
     m_Stage         = stage;
     m_SourceWorld   = sourceWorld;
     m_Category      = category;
     m_ContractOwner = contractOwner;
 }
Esempio n. 8
0
        public BaseContract Create(Hashtable hash, ContractManager owner)
        {
            var category = (ContractCategory)hash.GetValue <int>((int)SPC.ContractCategory, (int)ContractCategory.unknown);

            switch (category)
            {
            case ContractCategory.killNPC:
                return(new KillNPCContract(hash, owner));

            case ContractCategory.killNPCGroup:
                return(new KillNPCGroupContract(hash, owner));

            case ContractCategory.exploreLocation:
                return(new ExploreLocationContract(hash, owner));

            case ContractCategory.itemDelivery:
                return(new ItemDeliveryContract(hash, owner));

            case ContractCategory.foundItem:
                return(new FoundItemContract(hash, owner));

            case ContractCategory.killPlayer:
                return(new KillPlayerContract(hash, owner));

            case ContractCategory.destroyConstruction:
                return(new DestroyConstructionContract(hash, owner));

            case ContractCategory.upgradeCompanion:
                return(new UpgradePetContract(hash, owner));

            case ContractCategory.worldCapture:
                return(new WorldCaptureContract(hash, owner));

            default: {
                s_Log.ErrorFormat("not exist contract catgeory: {0}", category);
                return(null);
            }
            }
        }
Esempio n. 9
0
 public WorldCaptureContract(string id, int stage, string sourceWorld, ContractManager mgr, Race wRace)
     : base(id, stage, sourceWorld, ContractCategory.worldCapture, mgr)
 {
     m_WorldRace = wRace;
 }
Esempio n. 10
0
 public BaseContract(Hashtable hash, ContractManager contractOwner)
 {
     m_ContractOwner = contractOwner;
     ParseInfo(hash);
 }
Esempio n. 11
0
 public KillNPCContract(Hashtable hash, ContractManager manager)
     : base(hash, manager)
 {
     m_BotName     = hash.GetValue <string>((int)SPC.Group, string.Empty);
     m_TargetWorld = hash.GetValue <string>((int)SPC.TargetWorld, string.Empty);
 }
Esempio n. 12
0
 public KillPlayerContract(string id, int stage, string sourceWorld, ContractManager owner, int count)
     : base(id, stage, sourceWorld, ContractCategory.killPlayer, owner)
 {
     m_Count   = count;
     m_Counter = 0;
 }
Esempio n. 13
0
 public ItemDeliveryContract(Hashtable hash, ContractManager manager)
     : base(hash, manager)
 {
     m_ItemId      = hash.GetValue <string>((int)SPC.ItemId, string.Empty);
     m_TargetWorld = hash.GetValue <string>((int)SPC.TargetWorld, string.Empty);
 }
Esempio n. 14
0
 public UpgradePetContract(Hashtable hash, ContractManager mgr)
     : base(hash, mgr)
 {
 }
Esempio n. 15
0
 public UpgradePetContract(string id, int stage, string sourceWorld, ContractManager mgr)
     : base(id, stage, sourceWorld, Common.ContractCategory.upgradeCompanion, mgr)
 {
 }
 public DestroyConstructionContract(Hashtable hash, ContractManager mgr) : base(hash, mgr)
 {
     FromHash(hash);
 }
 public DestroyConstructionContract(string id, int stage, string sourceWorld, ContractManager mgr, BotItemSubType constrType, Race constrRace)
     : base(id, stage, sourceWorld, ContractCategory.destroyConstruction, mgr)
 {
     m_ConstructionType = constrType;
     m_ConstructionRace = constrRace;
 }
Esempio n. 18
0
 public WorldCaptureContract(Hashtable hash, ContractManager mgr)
     : base(hash, mgr)
 {
     FromHash(hash);
 }
Esempio n. 19
0
 public ExploreLocationContract(Hashtable hash, ContractManager manager) : base(hash, manager)
 {
     m_LocationName = hash.GetValue <string>((int)SPC.Group, string.Empty);
     m_TargetWorld  = hash.GetValue <string>((int)SPC.TargetWorld, string.Empty);
 }
Esempio n. 20
0
 public KillNPCContract(string id, int stage, string sourceWorld, ContractManager manager, string botName, string targetWorld)
     : base(id, stage, sourceWorld, ContractCategory.killNPC, manager)
 {
     m_BotName     = botName;
     m_TargetWorld = targetWorld;
 }
Esempio n. 21
0
 public KillPlayerContract(Hashtable hash, ContractManager manager) : base(hash, manager)
 {
     m_Count   = hash.GetValue <int>((int)SPC.Count, 0);
     m_Counter = hash.GetValue <int>((int)SPC.Counter, 0);
 }