ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/lib/cf.pm
(Generate patch)

Comparing deliantra/server/lib/cf.pm (file contents):
Revision 1.230 by root, Mon Apr 2 18:04:46 2007 UTC vs.
Revision 1.231 by root, Wed Apr 4 00:02:06 2007 UTC

1124 } 1124 }
1125 1125
1126 \@paths 1126 \@paths
1127} 1127}
1128 1128
1129=item $player->ext_reply ($msgid, $msgtype, %msg) 1129=item $player->ext_reply ($msgid, %msg)
1130 1130
1131Sends an ext reply to the player. 1131Sends an ext reply to the player.
1132 1132
1133=cut 1133=cut
1134 1134
1135sub ext_reply($$$%) { 1135sub ext_reply($$%) {
1136 my ($self, $id, %msg) = @_; 1136 my ($self, $id, %msg) = @_;
1137 1137
1138 $msg{msgid} = $id; 1138 $msg{msgid} = $id;
1139
1140 $self->send ("ext " . cf::to_json \%msg);
1141}
1142
1143=item $player->ext_event ($type, %msg)
1144
1145Sends an ext event to the client.
1146
1147=cut
1148
1149sub ext_event($$%) {
1150 my ($self, $type, %msg) = @_;
1151
1152 delete $msg{msgid};
1153 $msg{msgtype} = "event";
1154 $msg{eventtype} = $type;
1139 1155
1140 $self->send ("ext " . cf::to_json \%msg); 1156 $self->send ("ext " . cf::to_json \%msg);
1141} 1157}
1142 1158
1143package cf; 1159package cf;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines