Example
This commit is contained in:
parent
e1e42e2fe0
commit
7010df3376
2 changed files with 10 additions and 0 deletions
|
@ -60,6 +60,7 @@ handle_request! {
|
||||||
UpdateSceneDate;
|
UpdateSceneDate;
|
||||||
EntityActive;
|
EntityActive;
|
||||||
EntityOnLanded;
|
EntityOnLanded;
|
||||||
|
CombatSendPack, combat_message;
|
||||||
}
|
}
|
||||||
|
|
||||||
handle_push! {
|
handle_push! {
|
||||||
|
|
|
@ -2,6 +2,7 @@ use shorekeeper_protocol::{
|
||||||
EntityActiveRequest, EntityActiveResponse, EntityOnLandedRequest, EntityOnLandedResponse,
|
EntityActiveRequest, EntityActiveResponse, EntityOnLandedRequest, EntityOnLandedResponse,
|
||||||
ErrorCode, MovePackagePush, UpdateSceneDateRequest, UpdateSceneDateResponse,
|
ErrorCode, MovePackagePush, UpdateSceneDateRequest, UpdateSceneDateResponse,
|
||||||
};
|
};
|
||||||
|
use shorekeeper_protocol::combat_message::{CombatSendPackRequest, CombatSendPackResponse};
|
||||||
|
|
||||||
use crate::{logic::ecs::component::ComponentContainer, logic::player::Player, query_components};
|
use crate::{logic::ecs::component::ComponentContainer, logic::player::Player, query_components};
|
||||||
|
|
||||||
|
@ -13,6 +14,14 @@ pub fn on_update_scene_date_request(
|
||||||
response.error_code = ErrorCode::Success.into();
|
response.error_code = ErrorCode::Success.into();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn on_combat_message_combat_send_pack_request(
|
||||||
|
_player: &Player,
|
||||||
|
_request: CombatSendPackRequest,
|
||||||
|
response: &mut CombatSendPackResponse,
|
||||||
|
) {
|
||||||
|
response.error_code = ErrorCode::Success.into();
|
||||||
|
}
|
||||||
|
|
||||||
pub fn on_entity_active_request(
|
pub fn on_entity_active_request(
|
||||||
player: &Player,
|
player: &Player,
|
||||||
request: EntityActiveRequest,
|
request: EntityActiveRequest,
|
||||||
|
|
Loading…
Reference in a new issue