… | |
… | |
90 | my %ext_pkg; |
90 | my %ext_pkg; |
91 | my @exts; |
91 | my @exts; |
92 | my @hook; |
92 | my @hook; |
93 | my %command; |
93 | my %command; |
94 | my %extcmd; |
94 | my %extcmd; |
|
|
95 | |
|
|
96 | ############################################################################# |
|
|
97 | # object support |
|
|
98 | |
|
|
99 | sub reattach { |
|
|
100 | warn "reattach<@_>\n"; |
|
|
101 | } |
|
|
102 | |
|
|
103 | sub instantiate { |
|
|
104 | warn "instantiate<@_>\n"; |
|
|
105 | } |
|
|
106 | |
|
|
107 | sub clone { |
|
|
108 | warn "clone<@_>\n"; |
|
|
109 | } |
95 | |
110 | |
96 | ############################################################################# |
111 | ############################################################################# |
97 | # "new" plug-in system |
112 | # "new" plug-in system |
98 | |
113 | |
99 | =item cf::object::attach ... # NYI |
114 | =item cf::object::attach ... # NYI |
… | |
… | |
466 | |
481 | |
467 | ############################################################################# |
482 | ############################################################################# |
468 | # extcmd framework, basically convert ext <msg> |
483 | # extcmd framework, basically convert ext <msg> |
469 | # into pkg::->on_extcmd_arg1 (...) while shortcutting a few |
484 | # into pkg::->on_extcmd_arg1 (...) while shortcutting a few |
470 | |
485 | |
471 | attach_global |
486 | attach_to_players |
472 | on_extcmd => sub { |
487 | on_extcmd => sub { |
473 | my ($pl, $buf) = @_; |
488 | my ($pl, $buf) = @_; |
474 | |
489 | |
475 | my $msg = eval { from_json $buf }; |
490 | my $msg = eval { from_json $buf }; |
476 | |
491 | |