19 void CalculateTargetDistance(notnull IEntity pOwnerEntity,
bool increase)
21 Rpc(RpcAsk_CalculateTargetDistance, Replication.FindId(pOwnerEntity), increase);
27 Rpc(RpcAsk_ClearPlayerScore, playerID, Replication.FindId(firingRangeManager));
34 Rpc(RpcAsk_SetMaxLineScore, playerID, maxScore, Replication.FindId(firingRangeManager));
38 void ErectRandomTargets(notnull IEntity pOwnerEntity,
int playerID)
40 Rpc(RpcAsk_ErectRandomTargets, Replication.FindId(pOwnerEntity), playerID);
44 void BackToDefaultTarget(notnull IEntity pOwnerEntity)
46 Rpc(RpcAsk_BackToDefaultTarget, Replication.FindId(pOwnerEntity));
55 Rpc(RpcAsk_RemoveIndicatorsServer, Replication.FindId(pOwnerEntity), Replication.FindId(firingRangeManager));
59 void RegisterCommEntity(RplId comEntID)
61 Rpc(RpcAsk_RegisterCommEntity, comEntID);
65 void AddTarget(notnull IEntity pOwnerEntity,
bool increase)
67 Rpc(RpcAsk_AddTarget, Replication.FindId(pOwnerEntity), increase);
71 [
RplRpc(RplChannel.Reliable, RplRcver.Owner)]
72 protected void RpcAsk_RegisterCommEntity(RplId comEntID)
74 IEntity ent = IEntity.Cast(Replication.FindItem(comEntID));
82 [
RplRpc(RplChannel.Reliable, RplRcver.Server)]
83 protected void RpcAsk_RemoveIndicatorsServer(RplId controllerReplicationId, RplId firingRangeManager)
87 manager.RemoveIndicators(controllerReplicationId);
91 [
RplRpc(RplChannel.Reliable, RplRcver.Server)]
92 protected void RpcAsk_CalculateTargetDistance(RplId controllerReplicationId,
bool increase)
96 lineController.CalculateTargetDistance(increase);
100 [
RplRpc(RplChannel.Reliable, RplRcver.Server)]
101 protected void RpcAsk_ClearPlayerScore(
int playerID, RplId firingRangeManager)
105 manager.ClearPlayerScore(playerID);
109 [
RplRpc(RplChannel.Reliable, RplRcver.Server)]
110 protected void RpcAsk_ErectRandomTargets(RplId targetReplicationId,
int playerID)
112 IEntity pOwnerEntity = IEntity.Cast(Replication.FindItem(targetReplicationId));
115 lineController.AnimateTargets(pOwnerEntity,playerID);
119 [
RplRpc(RplChannel.Reliable, RplRcver.Server)]
120 protected void RpcAsk_BackToDefaultTarget(RplId targetReplicationId)
124 lineController.BackToDefaultTarget();
128 [
RplRpc(RplChannel.Reliable, RplRcver.Server)]
129 protected void RpcAsk_SetMaxLineScore(
int playerID,
int maxScore, RplId firingRangeManager)
133 manager.SetPlayerScoreMax(playerID, maxScore);
137 [
RplRpc(RplChannel.Reliable, RplRcver.Server)]
138 protected void RpcAsk_CountPlayerScore(
int playerID,
int hitValue, RplId firingRangeManager)
142 manager.CountPlayerScore(playerID, hitValue);
146 [
RplRpc(RplChannel.Reliable, RplRcver.Server)]
147 protected void RpcAsk_AddTarget(RplId controllerReplicationId,
bool increase)
151 lineController.UpdateNumberOfTargets(increase);
157 SetEventMask(EntityEvent.INIT | EntityEvent.FRAME);
158 SetFlags(EntityFlags.NO_TREE | EntityFlags.NO_LINK);