1using System.Collections.Generic;
47 uIContextMenu.
AddButton(
"unassignBed", delegate
55 uIContextMenu.
AddButton(
"claimBed", delegate
60 SE.Play(
"jingle_embark");
65 uIContextMenu.
AddButton(
"assignBed", delegate
70 foreach (
BedType t
in new List<BedType>
78 uIContextMenu.AddButton(((t ==
owner.
c_bedType) ?
"context_checker".lang() :
"") + (
"bed_" + t).lang(), delegate
84 CursorSystem.ignoreCount = 5;
97 data.
list.ForeachReverse(delegate(
int i)
110 if (charaList ==
null)
112 charaList = (owner.c_charaList =
new CharaList());
120 if (c_charaList !=
null)
123 if (c_charaList.
list.Count == 0)
125 owner.c_charaList =
null;
143 if (c_charaList !=
null)
153 if (c_charaList ==
null)
157 return c_charaList.list.Count > 0;
169 if ((memberType != 0 || (c_bedType != 0 && c_bedType !=
BedType.residentOne)) && (memberType !=
FactionMemberType.Livestock || c_bedType !=
BedType.livestock))
173 return c_bedType ==
BedType.guest;
184 owner.c_bedType = bedType;
192 if (c_charaList !=
null)
194 List<Chara> list = c_charaList.
Get();
197 s =
"_bed".lang(list[0].NameSimple, s);
202 s =
"_bed".lang(
"_and".lang(list[0].NameSimple, list[1].NameSimple), s);
209 s =
"_of4".lang(@ref, s);
216 if (c_charaList ==
null || c_charaList.
Get().Count < 3)
221 foreach (
Chara item in c_charaList.Get())
227 text +=
item.NameSimple;
229 return "(" + text +
")";
if(item3.idFile==idFirstFile &&item3.id==idFirstTopic)
bool TrySetAct(string lang, Func< bool > onPerform, Card tc, CursorInfo cursor=null, int dist=1, bool isHostileAct=false, bool localAct=true, bool canRepeat=false)
GlobalCharaList globalCharas
override bool IsPCFaction
FactionMemberType memberType
static LayerPeople CreateBed(TraitBed bed)
Chara FindChara(string id)
static string Say(string idLang, string ref1, string ref2=null, string ref3=null, string ref4=null)
void RemoveHolder(Chara c)
override bool IsChangeFloorHeight
void SetBedType(BedType bedType)
override string GetHoverText()
override void SetName(ref string s)
override void TrySetAct(ActPlan p)
string GetParam(int i, string def=null)