咳……又是自己摸索……# g e/ w! U" g- H, O
sel = SwarmUtils.getSelector("FoodSpace", "seedFood");
- S( r9 V. _9 _- o& i2 K) f worldRaster.setButton$Client$Message(1, modelSwarm.getFood(), sel);: q& T9 I0 E; G/ ~2 [3 i
% ]* ?! ~* z% ^7 f& Y- s
其中FoodSpace的seedFood函数:
( n8 {: s0 X# Y2 g1 e! e" P( ~2 x. apublic Object seedFood(int x, int y) {
$ B4 c7 t+ t1 g) h9 m9 ^. d putValue$atX$Y(1, x, y);
* p8 @' O' \- e return this;/ ?3 x. W" b+ @& u# D' }& V: [
} |