示例#1
0
func NewTruceSession(d db.DBer) *TruceSession {
	group := NewTruceGroup()
	return &TruceSession{
		TruceGroup: group,
		Session:    gp.NewSession(group, d),
	}
}
示例#2
0
func NewLaunchRecordSession(d db.DBer) *LaunchRecordSession {
	group := NewLaunchRecordGroup()
	return &LaunchRecordSession{
		LaunchRecordGroup: group,
		Session:           gp.NewSession(group, d),
	}
}
示例#3
0
func NewShipViewSession(d db.DBer) *ShipViewSession {
	group := NewShipViewGroup()
	return &ShipViewSession{
		ShipViewGroup: group,
		Session:       gp.NewSession(group, d),
	}
}
示例#4
0
func NewPlanetViewSession(d db.DBer) *PlanetViewSession {
	group := NewPlanetViewGroup()
	return &PlanetViewSession{
		PlanetViewGroup: group,
		Session:         gp.NewSession(group, d),
	}
}
示例#5
0
func NewMapViewSession(d db.DBer) *MapViewSession {
	group := NewMapViewGroup()
	return &MapViewSession{
		MapViewGroup: group,
		Session:      gp.NewSession(group, d),
	}
}
示例#6
0
func NewPowerOrderSession(d db.DBer) *PowerOrderSession {
	group := NewPowerOrderGroup()
	return &PowerOrderSession{
		PowerOrderGroup: group,
		Session:         gp.NewSession(group, d),
	}
}
示例#7
0
func NewLaunchOrderSession(d db.DBer) *LaunchOrderSession {
	group := NewLaunchOrderGroup()
	return &LaunchOrderSession{
		LaunchOrderGroup: group,
		Session:          gp.NewSession(group, d),
	}
}
示例#8
0
func NewGameSession(d db.DBer) *GameSession {
	group := NewGameGroup()
	return &GameSession{
		GameGroup: group,
		Session:   gp.NewSession(group, d),
	}
}