예제 #1
0
func (s Replay_Round) Moves() (Turn_List, error) {
	p, err := s.Struct.Pointer(0)
	if err != nil {
		return Turn_List{}, err
	}

	l := capnp.ToList(p)

	return Turn_List{List: l}, nil
}
예제 #2
0
func (s Board) Robots() (Robot_List, error) {
	p, err := s.Struct.Pointer(0)
	if err != nil {
		return Robot_List{}, err
	}

	l := capnp.ToList(p)

	return Robot_List{List: l}, nil
}
예제 #3
0
func (s Replay) Rounds() (Replay_Round_List, error) {
	p, err := s.Struct.Pointer(2)
	if err != nil {
		return Replay_Round_List{}, err
	}

	l := capnp.ToList(p)

	return Replay_Round_List{List: l}, nil
}
예제 #4
0
func (s Ai_takeTurn_Results) Turns() (Turn_List, error) {
	p, err := s.Struct.Pointer(0)
	if err != nil {
		return Turn_List{}, err
	}

	l := capnp.ToList(p)

	return Turn_List{List: l}, nil
}