咳……又是自己摸索……/ v0 V$ J0 x( N* n' J' T, S/ E
sel = SwarmUtils.getSelector("FoodSpace", "seedFood");
/ \) K1 G0 ?* E$ I- }2 z3 b worldRaster.setButton$Client$Message(1, modelSwarm.getFood(), sel);
6 T7 h, i/ b! B7 y& _1 {
5 A6 u s/ F6 {. I其中FoodSpace的seedFood函数:# s, r9 {7 x/ O8 o, S L! S
public Object seedFood(int x, int y) {/ n. G; m& l$ B! W' Y$ w
putValue$atX$Y(1, x, y);+ j' ~2 A- k% a! b) j% B; o3 C m
return this;
& R4 U9 o; \; b6 Y5 f' y: t8 r5 T } |