Ejemplo n.º 1
0
 public HelpModule(
     CommandService commandService,
     GatherManager gatherManager,
     IServiceProvider provider)
 {
     this.provider       = provider;
     this.gatherManager  = gatherManager;
     this.commandService = commandService;
 }
Ejemplo n.º 2
0
    public void spawn(AntQueen q, GatherManager gather)
    {
        spawnLocation = transform.position;
        destination   = spawnLocation; //no need to move to
        queen         = q;
        gatherManager = gather;

        Vector3 randomDirection = new Vector3(0, 0, Random.Range(-180, 180));

        transform.Rotate(randomDirection);

        StartCoroutine(idle());
    }
Ejemplo n.º 3
0
 public Character(DofusClient client)
 {
     Client        = client;
     Stats         = new CharacterCharacteristicsInformations();
     Look          = new EntityLook();
     Restrictions  = new ActorRestrictionsInformations();
     Inventory     = new List <ObjectItem>();
     Spells        = new List <SpellItem>();
     Status        = CharacterStatus.Disconnected;
     MapData       = new MapData();
     Map           = new Map(Client);
     GatherManager = new GatherManager(Client);
     Jobs          = new List <JobExperience>();
 }
Ejemplo n.º 4
0
 public ChannelConfigModule(GatherManager gatherManager)
 {
     this.gatherManager = gatherManager;
 }
Ejemplo n.º 5
0
        public Character(IAccount account)
        {
            Account       = account;
            Stats         = new CharacterCharacteristicsInformations();
            Look          = new EntityLook();
            Restrictions  = new ActorRestrictionsInformations();
            Spells        = new List <SpellItem>();
            Status        = CharacterStatus.Disconnected;
            Jobs          = new List <JobExperience>();
            GatherManager = new GatherManager(Account);
            PathManager   = new PathManager(Account);

            Achievement = new Achievement(Account);
            Alliance    = new Alliance(Account);
            BidHouse    = new BidHouse(Account);
            Chat        = new Chat(Account);
            Map         = new Map(Account);
            Fight       = new Fight(Account);
            Friend      = new Friend(Account);
            Guild       = new Guild(Account);
            Inventory   = new Inventory(Account);
            Party       = new Party(Account);

            #region Choice Handler

            account.Network.RegisterPacket <BasicCharactersListMessage>(HandleBasicCharactersListMessage,
                                                                        MessagePriority.VeryHigh);
            account.Network.RegisterPacket <CharactersListMessage>(HandleCharactersListMessage,
                                                                   MessagePriority.VeryHigh);
            account.Network.RegisterPacket <CharacterSelectedSuccessMessage>(HandleCharacterSelectedSuccessMessage,
                                                                             MessagePriority.VeryHigh);

            #endregion Choice Handler

            #region Creation Handler

            account.Network.RegisterPacket <CharacterCanBeCreatedResultMessage>(HandleCharacterCanBeCreatedResultMessage,
                                                                                MessagePriority.VeryHigh);
            account.Network.RegisterPacket <CharacterCreationResultMessage>(HandleCharacterCreationResultMessage,
                                                                            MessagePriority.VeryHigh);
            account.Network.RegisterPacket <CharacterNameSuggestionFailureMessage>(
                HandleCharacterNameSuggestionFailureMessage, MessagePriority.VeryHigh);
            account.Network.RegisterPacket <CharacterNameSuggestionSuccessMessage>(
                HandleCharacterNameSuggestionSuccessMessage, MessagePriority.VeryHigh);

            #endregion Creation Handler

            #region Deletion Handler

            account.Network.RegisterPacket <CharacterDeletionErrorMessage>(HandleCharacterDeletionErrorMessage,
                                                                           MessagePriority.VeryHigh);

            #endregion Deletion Handler

            #region Stats Handler

            account.Network.RegisterPacket <CharacterStatsListMessage>(HandleCharacterStatsListMessage,
                                                                       MessagePriority.VeryHigh);
            account.Network.RegisterPacket <CharacterExperienceGainMessage>(HandleCharacterExperienceGainMessage,
                                                                            MessagePriority.VeryHigh);
            account.Network.RegisterPacket <CharacterLevelUpInformationMessage>(HandleCharacterLevelUpInformationMessage,
                                                                                MessagePriority.VeryHigh);
            account.Network.RegisterPacket <CharacterLevelUpMessage>(HandleCharacterLevelUpMessage,
                                                                     MessagePriority.VeryHigh);
            account.Network.RegisterPacket <LifePointsRegenEndMessage>(HandleLifePointsRegenEndMessage,
                                                                       MessagePriority.VeryHigh);
            account.Network.RegisterPacket <UpdateLifePointsMessage>(HandleUpdateLifePointsMessage,
                                                                     MessagePriority.VeryHigh);

            #endregion Stats Handler

            #region Initialization Handler

            account.Network.RegisterPacket <CharacterLoadingCompleteMessage>(HandleCharacterLoadingCompleteMessage,
                                                                             MessagePriority.VeryHigh);
            account.Network.RegisterPacket <OnConnectionEventMessage>(HandleOnConnectionEventMessage,
                                                                      MessagePriority.VeryHigh);
            account.Network.RegisterPacket <SetCharacterRestrictionsMessage>(HandleSetCharacterRestrictionsMessage,
                                                                             MessagePriority.VeryHigh);

            #endregion Initialization Handler

            Account.Network.RegisterPacket <MapComplementaryInformationsDataMessage>(
                HandleMapComplementaryInformationsDataMessage, MessagePriority.Normal);
            Account.Network.RegisterPacket <GameContextRefreshEntityLookMessage>(
                HandleGameContextRefreshEntityLookMessage, MessagePriority.Normal);
        }
Ejemplo n.º 6
0
 public GatherModule(GatherManager gatherManager)
 {
     this.gatherManager = gatherManager;
 }
 private void Awake()
 {
     Instance = this;
 }