Documentation
¶
Index ¶
- func Judge(people []Person) int
- func Raid(people []Person)
- type Chapter
- type Chara
- type Job
- func (j Job) CanSpeakWhisper() bool
- func (j Job) CanUseAbility(day int) bool
- func (j Job) Description() string
- func (j Job) GotVictory(wonCamp int) bool
- func (j Job) HasAbility() bool
- func (j Job) IsBlack() bool
- func (j Job) IsEvil() bool
- func (j Job) IsHuman() bool
- func (j Job) IsWolf() bool
- func (j Job) String() string
- type Management
- type Page
- type Person
- type Post
- type PostType
- type PreWriteView
- type ResultCol
- type TextSetting
- type TopView
- type UpdateSchedule
- type User
- type Village
- type VillageView
- func (v VillageView) AbilityTargetLists() []Person
- func (v VillageView) AbilityTargetsName() string
- func (v VillageView) Collecting() bool
- func (v VillageView) IsEpilogue() bool
- func (v VillageView) JobImage() string
- func (v VillageView) Opening() bool
- func (v VillageView) ShowVoteForm() bool
- func (v VillageView) VoteTargetLists() []Person
- func (v VillageView) VoteTargetsName() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Job ¶
type Job int
Job:
Villager - 村人 Seer - 占い師 Medium - 霊能者 Guard - 守護者, 狩人 Freemason - フリーメーソン, 共有者 Possess - 狂人 Wolf - 狼 Fox - 妖狐
func (Job) CanSpeakWhisper ¶
func (Job) CanUseAbility ¶
func (Job) Description ¶
func (Job) GotVictory ¶
func (Job) HasAbility ¶
type Management ¶
type Person ¶
type Person struct {
UserID string `datastore:"UserID"`
ParentKey *datastore.Key `datastore:"-" goon:"parent"`
CharacterID string `datastore:"CharacterID" goon:"id"`
Face string `datastore:"Face,noindex"`
Name string `datastore:"Name,noindex"`
Job Job `datastore:"Job,noindex"`
WantJob string `datastore:"WantJob,noindex"`
AbilityTarget string `datastore:"AbilityTarget,noindex"`
VoteTarget string `datastore:"VoteTarget,noindex"`
Dead bool `datastore:"Dead,noindex"`
CreatedTime time.Time `datastore:"CreatedTime"`
}
func (Person) HasWriteAuth ¶
type Post ¶
type Post struct {
ID int64 `datastore:"-" goon:"id"`
NumberTag string `datastore:"NumberTag,noindex"`
ParentKey *datastore.Key `datastore:"-" goon:"parent"`
Day int `datastore:"Day"`
Text string `datastore:"Text,noindex"`
Author string `datastore:"Author,noindex"`
AuthorID string `datastore:"AuthorID,noindex"`
Type PostType `datastore:"Type,noindex"`
Face string `datastore:"Face,noindex"`
Time time.Time `datastore:"Time"`
}
func (Post) IsPersonal ¶
func (Post) JstAboutTime ¶
type PreWriteView ¶
type TextSetting ¶
type TextSetting struct {
PrologueSystemPost string `yaml:"prologue_system_post"`
FirstDaySystemPost string `yaml:"first_day_system_post"`
SecondDaySystemPost string `yaml:"second_day_system_post"`
NpcName string `yaml:"npc_name"`
NpcFace string `yaml:"npc_face"`
NpcFirstPost string `yaml:"npc_first_post"`
NpcSecondPost string `yaml:"npc_second_post"`
VillagerWin string `yaml:"villager_win"`
WerewolfWin string `yaml:"werewolf_win"`
FoxWin string `yaml:"fox_win"`
}
type UpdateSchedule ¶
type UpdateSchedule struct {
VillageNo int64 `datastore:"VillageNo" goon:"id"`
ParentKey *datastore.Key `datastore:"-" goon:"parent"`
UpdateTime time.Time `datastore:"UpdateTime"`
Hour int `datastore:"Hour,noindex"`
Minute int `datastore:"Minute,noindex"`
}
func (UpdateSchedule) IsUpdateTime ¶
func (us UpdateSchedule) IsUpdateTime(now time.Time) bool
func (*UpdateSchedule) SetNextUpdateTime ¶
func (us *UpdateSchedule) SetNextUpdateTime(basetime time.Time)
type Village ¶
type Village struct {
No int64 `datastore:"No" goon:"id"`
Name string `datastore:"Name,noindex"`
CreatedTime time.Time `datastore:"CreatedTime"`
NumberOfPeople int `datastore:"NumberOfPeople,noindex"`
IncludeFreemason bool `datastore:"IncludeFreemason,noindex"`
IncludeFox bool `datastore:"IncludeFox,noindex"`
Chip bool `datastore:"Chip,noindex"`
UpdatetimeHour int `datastore:"UpdatetimeHour,noindex"`
UpdatetimeMinute int `datastore:"UpdatetimeMinute,noindex"`
Day int `datastore:"Day,noindex"` // 0:プロローグ 1〜N:N日目 -N:N日目で終了したエピローグ
PublicPostNo int `datastore:"PublicPostNo,noindex"`
PersonalPostNo int `datastore:"PersonalPostNo,noindex"`
WhisperNo int `datastore:"WhisperNo,noindex"`
GraveyardPostNo int `datastore:"GraveyardPostNo,noindex"`
Builder string `datastore:"Builder, noindex"`
Close bool `datastore:"Close"`
}
type VillageView ¶
type VillageView struct {
Posts []Post
Village Village
People []Person
CharacterSet []Chara
Chapters []Chapter
Indexes []Page
Result []ResultCol
Reader Person
No int64
Day int
Login bool
Enter bool
Recent bool
ShowStartButton bool
ShowAbility bool
ShowAbilitySelect bool
ShowResult bool
UserName string
LoginURL string
LogoutURL string
UserFace string
AbilityDescription string
UpdatetimeNotice string
NpcName string
}
func (VillageView) AbilityTargetLists ¶
func (v VillageView) AbilityTargetLists() []Person
func (VillageView) AbilityTargetsName ¶
func (v VillageView) AbilityTargetsName() string
func (VillageView) Collecting ¶
func (v VillageView) Collecting() bool
func (VillageView) IsEpilogue ¶
func (v VillageView) IsEpilogue() bool
func (VillageView) JobImage ¶
func (v VillageView) JobImage() string
func (VillageView) Opening ¶
func (v VillageView) Opening() bool
func (VillageView) ShowVoteForm ¶
func (v VillageView) ShowVoteForm() bool
func (VillageView) VoteTargetLists ¶
func (v VillageView) VoteTargetLists() []Person
func (VillageView) VoteTargetsName ¶
func (v VillageView) VoteTargetsName() string
Click to show internal directories.
Click to hide internal directories.