咳……又是自己摸索……
3 B' h4 N1 r: x4 @6 }3 \4 f; ?sel = SwarmUtils.getSelector("FoodSpace", "seedFood");' z v. k& C' l; b; l0 @
worldRaster.setButton$Client$Message(1, modelSwarm.getFood(), sel);. N* P: u" V4 `
: B* h0 z0 ~6 N# T( m9 k1 ]
其中FoodSpace的seedFood函数:
8 Z B; w0 U6 ~; U0 g" Z7 m! [: gpublic Object seedFood(int x, int y) {- g8 A2 G$ Z4 X( B. a$ K
putValue$atX$Y(1, x, y);
+ k( V9 S6 ?; u* D9 ? return this;( t5 Y2 m$ Q3 ~* T2 a
} |