(e *BasicEntity, c1 *MyComponent1, c2 *MyComponent2)
| 77 | } |
| 78 | } |
| 79 | func (sys *MySystemOneTwo) Add(e *BasicEntity, c1 *MyComponent1, c2 *MyComponent2) { |
| 80 | sys.entities = append(sys.entities, MySystemOneTwoEntity{e, c1, c2}) |
| 81 | } |
| 82 | func (sys *MySystemOneTwo) AddByInterface(o Identifier) { |
| 83 | obj := o.(MySystemOneTwoable) |
| 84 | sys.Add(obj.GetBasicEntity(), obj.GetMyComponent1(), obj.GetMyComponent2()) |
no outgoing calls
no test coverage detected