咳……又是自己摸索……1 y; h% E8 V* U) t- z/ h
sel = SwarmUtils.getSelector("FoodSpace", "seedFood");' b2 y" s7 ?# f$ U: i; J
worldRaster.setButton$Client$Message(1, modelSwarm.getFood(), sel);' d6 x& O7 a. I" Z# x+ e k
; x$ @/ n* _: j' F) q& `
其中FoodSpace的seedFood函数:
' z9 T0 q4 q' P; l9 @public Object seedFood(int x, int y) {0 i; q+ r: ` _& c0 A# i- ?- ]& F
putValue$atX$Y(1, x, y);
: I4 h5 H# h7 X* G return this;
) |5 V6 |2 `' n" w4 O, X } |