Documentation ¶
Overview ¶
Project OpenMonster Copyright (C) 2020 Kori This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/\>. Project OpenMonster Copyright (C) 2020 Kori This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/\>.
Package memory contains in-memory implementations of the database interfaces. These implementations are currently not persisted.
Project OpenMonster Copyright (C) 2020 Kori This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/\>. Project OpenMonster Copyright (C) 2020 Kori This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/\>.
Index ¶
- type BattleDB
- type BreederDB
- func (tdb *BreederDB) Create(breeder model.Breeder) (model.ID, error)
- func (tdb *BreederDB) Delete(id model.ID) error
- func (tdb *BreederDB) Load(id model.ID) (model.Breeder, error)
- func (tdb *BreederDB) LoadAll() ([]model.Breeder, error)
- func (tdb *BreederDB) Save(breeder model.Breeder) error
- func (b *BreederDB) SavePosition(breederID model.ID, position model.Vector2D) (err error)
- type MonsterDB
- func (mdb *MonsterDB) Create(monster model.Monster) (model.ID, error)
- func (mdb *MonsterDB) Delete(id model.ID) error
- func (mdb *MonsterDB) Load(id model.ID) (model.Monster, error)
- func (mdb *MonsterDB) LoadTeamByBreederId(id model.ID) (team []model.Monster, err error)
- func (mdb *MonsterDB) Save(monster model.Monster) error
- func (mdb *MonsterDB) SaveTeamByBreederId(id model.ID, team []model.Monster) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BattleDB ¶
type BattleDB struct {
// contains filtered or unexported fields
}
func NewBattleDB ¶
func NewBattleDB() *BattleDB
func (*BattleDB) CreateRequest ¶
func (*BattleDB) LoadRequestByBreeder ¶
type BreederDB ¶
type BreederDB struct {
// contains filtered or unexported fields
}
func NewBreederDB ¶
func NewBreederDB() *BreederDB
type MonsterDB ¶
type MonsterDB struct {
// contains filtered or unexported fields
}
func NewMonsterDB ¶
func NewMonsterDB() *MonsterDB
func (*MonsterDB) LoadTeamByBreederId ¶
Click to show internal directories.
Click to hide internal directories.