Rename egs_counters to egs_counters_db.
This commit is contained in:
parent
1e264d3e1b
commit
fc6c424536
@ -17,7 +17,7 @@
|
||||
%% You should have received a copy of the GNU Affero General Public License
|
||||
%% along with EGS. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
-module(egs_counters).
|
||||
-module(egs_counters_db).
|
||||
-behavior(gen_server).
|
||||
-export([start_link/0, stop/0, bg/1, opts/1, pack/1, reload/0]). %% API.
|
||||
-export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]). %% gen_server.
|
@ -310,7 +310,7 @@ event(counter_leave, State=#state{gid=GID}) ->
|
||||
%% @todo Rename to counter_bg_request.
|
||||
event({counter_options_request, CounterID}, State) ->
|
||||
log("counter options request ~p", [CounterID]),
|
||||
psu_proto:send_1711(egs_counters:bg(CounterID), State);
|
||||
psu_proto:send_1711(egs_counters_db:bg(CounterID), State);
|
||||
|
||||
%% @todo Handle when the party already exists! And stop doing it wrong.
|
||||
event(counter_party_info_request, #state{gid=GID}) ->
|
||||
@ -324,12 +324,12 @@ event(counter_party_options_request, _State) ->
|
||||
%% @doc Request the counter's quest files.
|
||||
event({counter_quest_files_request, CounterID}, State) ->
|
||||
log("counter quest files request ~p", [CounterID]),
|
||||
psu_proto:send_0c06(egs_counters:pack(CounterID), State);
|
||||
psu_proto:send_0c06(egs_counters_db:pack(CounterID), State);
|
||||
|
||||
%% @doc Counter available mission list request handler.
|
||||
event({counter_quest_options_request, CounterID}, State) ->
|
||||
log("counter quest options request ~p", [CounterID]),
|
||||
psu_proto:send_0c10(egs_counters:opts(CounterID), State);
|
||||
psu_proto:send_0c10(egs_counters_db:opts(CounterID), State);
|
||||
|
||||
%% @todo A and B are mostly unknown. Like most of everything else from the command 0e00...
|
||||
event({hit, FromTargetID, ToTargetID, A, B}, State=#state{gid=GID}) ->
|
||||
|
@ -55,11 +55,11 @@ init([]) ->
|
||||
LoginProcs = [{{egs_login_server, Port}, {egs_login_server, start_link, [Port]}, permanent, 5000, worker, dynamic} || Port <- LoginPorts],
|
||||
OtherProcs = [
|
||||
{egs_seasons, {egs_seasons, start_link, []}, permanent, 5000, worker, dynamic},
|
||||
{egs_counters_db, {egs_counters_db, start_link, []}, permanent, 5000, worker, dynamic},
|
||||
{egs_items_db, {egs_items_db, start_link, []}, permanent, 5000, worker, dynamic},
|
||||
{egs_npc_db, {egs_npc_db, start_link, []}, permanent, 5000, worker, dynamic},
|
||||
{egs_shops_db, {egs_shops_db, start_link, []}, permanent, 5000, worker, dynamic},
|
||||
{egs_accounts, {egs_accounts, start_link, []}, permanent, 5000, worker, dynamic},
|
||||
{egs_counters, {egs_counters, start_link, []}, permanent, 5000, worker, dynamic},
|
||||
{egs_universes, {egs_universes, start_link, []}, permanent, 5000, worker, dynamic},
|
||||
{egs_user_model, {egs_user_model, start_link, []}, permanent, 5000, worker, dynamic},
|
||||
{egs_game_server, {egs_game_server, start_link, [GamePort]}, permanent, 5000, worker, dynamic}
|
||||
|
Loading…
Reference in New Issue
Block a user