1using System.Collections.Generic;
41 uIContextMenu.
AddButton(
"unassignBed", delegate
49 uIContextMenu.
AddButton(
"claimBed", delegate
54 SE.Play(
"jingle_embark");
59 uIContextMenu.
AddButton(
"assignBed", delegate
64 foreach (
BedType t
in new List<BedType>
72 uIContextMenu.AddButton(((t ==
owner.
c_bedType) ?
"context_checker".lang() :
"") + (
"bed_" + t).lang(), delegate
78 CursorSystem.ignoreCount = 5;
91 data.
list.ForeachReverse(delegate(
int i)
104 if (charaList ==
null)
106 charaList = (owner.c_charaList =
new CharaList());
114 if (c_charaList !=
null)
117 if (c_charaList.
list.Count == 0)
119 owner.c_charaList =
null;
137 if (c_charaList !=
null)
147 if (c_charaList ==
null)
151 return c_charaList.list.Count > 0;
163 if ((memberType != 0 || (c_bedType != 0 && c_bedType !=
BedType.residentOne)) && (memberType !=
FactionMemberType.Livestock || c_bedType !=
BedType.livestock))
167 return c_bedType ==
BedType.guest;
178 owner.c_bedType = bedType;
186 if (c_charaList !=
null)
188 List<Chara> list = c_charaList.
Get();
191 s =
"_bed".lang(list[0].NameSimple, s);
196 s =
"_bed".lang(
"_and".lang(list[0].NameSimple, list[1].NameSimple), s);
203 s =
"_of4".lang(@ref, s);
210 if (c_charaList ==
null || c_charaList.
Get().Count < 3)
215 foreach (
Chara item in c_charaList.Get())
221 text +=
item.NameSimple;
223 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)