|
| override void | SetName (ref string s) |
| |
| override void | TrySetAct (ActPlan p) |
| |
| string | GetParam (int i, string def=null) |
| |
| int | GetParamInt (int i, int def) |
| |
| virtual SourcePref | GetPref () |
| |
| virtual RenderData | GetRenderData () |
| |
| virtual bool | Contains (RecipeSource r) |
| |
| virtual int | GetValue () |
| |
| virtual bool | CanStackTo (Thing to) |
| |
| virtual string | GetHoverText () |
| |
| virtual Action | GetHealAction (Chara c) |
| |
| virtual bool | CanBlend (Thing t) |
| |
| virtual void | OnBlend (Thing t, Chara c) |
| |
| virtual int | GetActDuration (Chara c) |
| |
| virtual SourceElement.Row | GetRefElement () |
| |
| virtual Sprite | GetRefSprite () |
| |
| virtual void | OnRenderExtra (RenderParam p) |
| |
| virtual Emo2 | GetHeldEmo (Chara c) |
| |
| virtual void | SetOwner (Card _owner) |
| |
| virtual bool | IdleUse (Chara c, int dist) |
| |
| virtual void | OnSetOwner () |
| |
| virtual void | OnImportMap () |
| |
| virtual void | SetParams (params string[] s) |
| |
| virtual void | OnCrafted (Recipe recipe, List< Thing > ings) |
| |
| virtual void | OnCreate (int lv) |
| |
| virtual void | OnEquip (Chara c, bool onSetOwner) |
| |
| virtual void | OnUnequip (Chara c) |
| |
| virtual void | OnChangePlaceState (PlaceState state) |
| |
| virtual void | OnAddedToZone () |
| |
| virtual void | OnRemovedFromZone () |
| |
| virtual void | OnSimulateHour (VirtualDate date) |
| |
| virtual string | GetName () |
| |
| virtual void | SetName (ref string s) |
| |
| virtual void | OnRenderTile (Point point, HitResult result, int dir) |
| |
| virtual void | OnListInteraction (InvOwner.ListInteraction list, ButtonGrid b, bool context) |
| |
| virtual int | CompareTo (Card b) |
| |
| virtual bool | CanBuiltAt (Point p) |
| |
| virtual void | Update () |
| |
| Point | GetPoint () |
| |
| Point | GetRandomPoint (Func< Point, bool > func=null, Chara accessChara=null) |
| |
| virtual List< Point > | ListPoints (Point center=null, bool onlyPassable=true) |
| |
| virtual Recipe | GetRecipe () |
| |
| virtual Recipe | GetBuildModeRecipe () |
| |
| virtual bool | CanCook (Card c) |
| |
| void | CookProgress () |
| |
| virtual bool | CanOffer (Card tg) |
| |
| void | OfferProcess (Chara cc) |
| |
| void | Offer (Chara cc) |
| |
| virtual bool | TryProgress (AIProgress p) |
| |
| virtual LockOpenState | TryOpenLock (Chara cc, bool msgFail=true) |
| |
| virtual LockOpenState | TryPryOpenLock (Chara cc, bool msgFail=true) |
| |
| void | DamageRandomProperty (Chara cc) |
| |
| virtual void | OnLockOpen (Chara cc) |
| |
| virtual void | WriteNote (UINote n, bool identified) |
| |
| int | GetSortVal (UIList.SortMode m) |
| |
| virtual HotItem | GetHotItem () |
| |
| virtual bool | CanRead (Chara c) |
| |
| virtual void | OnRead (Chara c) |
| |
| virtual bool | CanEat (Chara c) |
| |
| virtual void | OnEat (Chara c) |
| |
| virtual bool | CanDrink (Chara c) |
| |
| virtual void | OnDrink (Chara c) |
| |
| virtual void | OnThrowGround (Chara c, Point p) |
| |
| virtual bool | CanUse (Chara c) |
| |
| virtual bool | CanUse (Chara c, Card tg) |
| |
| virtual bool | CanUse (Chara c, Point p) |
| |
| virtual bool | OnUse (Chara c) |
| |
| virtual bool | OnUse (Chara c, Card tg) |
| |
| virtual bool | OnUse (Chara c, Point p) |
| |
| virtual void | TrySetAct (ActPlan p) |
| |
| virtual void | TrySetHeldAct (ActPlan p) |
| |
| virtual void | OnHeld () |
| |
| virtual void | OnTickHeld () |
| |
| virtual void | OnSetCurrentItem () |
| |
| virtual void | OnUnsetCurrentItem () |
| |
| virtual bool | OnChildDecay (Card c, bool firstDecay) |
| |
| virtual bool | CanChildDecay (Card c) |
| |
| virtual void | OnSetCardGrid (ButtonGrid b) |
| |
| virtual void | OnStepped (Chara c) |
| |
| virtual void | OnSteppedOut (Chara c) |
| |
| virtual void | OnOpenDoor (Chara c) |
| |
| void | Install (bool byPlayer) |
| |
| void | Uninstall () |
| |
| virtual void | OnInstall (bool byPlayer) |
| |
| virtual void | OnUninstall () |
| |
| virtual void | TryToggle () |
| |
| virtual void | Toggle (bool on, bool silent=false) |
| |
| virtual void | PlayToggleEffect (bool silent) |
| |
| virtual void | OnToggle () |
| |
| virtual void | TrySetToggleAct (ActPlan p) |
| |
| bool | IsFuelEnough (int num=1, List< Thing > excludes=null, bool tryRefuel=true) |
| |
| bool | IsFuel (string s) |
| |
| bool | IsFuel (Thing t) |
| |
| int | GetFuelValue (Thing t) |
| |
| int | GetFuelValue (string id) |
| |
| void | Refuel (Thing t) |
| |
| void | TryRefuel (int dest, List< Thing > excludes) |
| |
| virtual void | OnEnterScreen () |
| |
| virtual void | RefreshRenderer () |
| |
| virtual void | SetMainText (UIText t, bool hotitem) |
| |
| virtual bool | CanCopy (Thing t) |
| |
| string | GetTextRestock (string lang, bool pet) |
| |
| Emo2 | GetRestockedIcon () |
| |
| virtual void | OnBarter (bool reroll=false) |
| |
| Thing | CreateStock () |
| |
Definition at line 3 of file TraitCoreZone.cs.
| override void TraitCoreZone.TrySetAct |
( |
ActPlan |
p | ) |
|
|
inlinevirtual |
Reimplemented from Trait.
Definition at line 21 of file TraitCoreZone.cs.
22 {
24 {
26 {
28 return false;
30 }
32 {
33 return;
34 }
37 {
39 {
40 if (!cancel)
41 {
42 EClass._zone.name = text;
43 EClass._zone.idPrefix = 0;
45 }
46 });
47 return false;
50 {
52 {
57 return true;
59 }
61 {
63 {
65 {
70 });
71 return false;
73 }
75 {
77 {
79 return false;
81 }
83 {
84 return;
85 }
87 {
89 {
91 {
92 Msg.Say("claimCooldown");
93 }
94 else
95 {
96 owner.Die();
97 EClass.player.DropReward(ThingGen.Create("deed"));
98 EClass._zone.AbandonZone();
99 }
100 });
101 return false;
103 }
bool TrySetAct(string lang, Func< bool > onPerform, Card tc, CursorInfo cursor=null, int dist=1, bool isHostileAct=false, bool localAct=true, bool canRepeat=false)
void MoveZone(string alias)
static CursorInfo MoveZone
static Dialog YesNo(string langDetail, Action actionYes, Action actionNo=null, string langYes="yes", string langNo="no")
static Dialog InputName(string langDetail, string text, Action< bool, string > onClose, InputType inputType=InputType.Default)
static SoundManager Sound
static Effect Get(Effect original)
HomeResourceManager resources
static LayerPeople CreateReserve()
static string Say(string idLang, string ref1, string ref2=null, string ref3=null, string ref4=null)
int GetInt(int id, int? defaultInt=null)
References EClass._zone, HomeResourceWorth.bestRank, EClass.Branch, EClass.core, LayerPeople.CreateReserve(), World.date, Version.demo, EClass.game, Effect.Get(), Spatial.GetInt(), Chara.homeZone, Dialog.InputName(), Date.IsExpired(), Card.IsInstalled, Zone.IsPCFaction, Zone.IsUserZone, Chara.MoveZone(), CursorSystem.MoveZone, Spatial.name, Spatial.Name, Trait.owner, Zone.ParentZone, EClass.pc, EClass.player, Card.pos, WidgetDate.Refresh(), FactionBranch.resources, Msg.Say(), EClass.Sound, Player.spawnZone, Game.StartZone, ActPlan.TrySetAct(), EClass.ui, BaseCore.version, EClass.world, HomeResourceManager.worth, and Dialog.YesNo().