(e *BasicEntity, c2 *MyComponent2)
| 121 | } |
| 122 | } |
| 123 | func (sys *MySystemTwo) Add(e *BasicEntity, c2 *MyComponent2) { |
| 124 | sys.entities = append(sys.entities, MySystemTwoEntity{e, c2}) |
| 125 | } |
| 126 | func (sys *MySystemTwo) AddByInterface(o Identifier) { |
| 127 | obj := o.(MySystemTwoable) |
| 128 | sys.Add(obj.GetBasicEntity(), obj.GetMyComponent2()) |