示例#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
}