teleported status flag

This commit is contained in:
Madpeter 2020-04-29 04:43:14 +01:00
parent d8878594af
commit 78014adaaf
3 changed files with 11 additions and 5 deletions

View file

@ -27,6 +27,11 @@ namespace BetterSecondBotShared.bottypes
public bool KillMe { get { return killMe; } }
protected bool teleported;
public void SetTeleported()
{
teleported = true;
}
protected Dictionary<UUID, Group> mygroups = new Dictionary<UUID, Group>();
@ -162,6 +167,7 @@ namespace BetterSecondBotShared.bottypes
if (FromAgentName == myconfig.master)
{
ResetAnimations();
SetTeleported();
Client.Self.TeleportLureRespond(FromAgentID, IMSessionID, true);
}
}

View file

@ -290,6 +290,8 @@ namespace BSB.bottypes
protected Dictionary<string, long> await_event_ages = new Dictionary<string, long>();
protected Dictionary<string, string> await_event_idtolistener = new Dictionary<string, string>();
protected int next_await_id = 1;
public bool CreateAwaitEventReply(string event_listener, CoreCommand command, string[] args)
{
string eventid = "" + event_listener + "" + next_await_id.ToString() + "";

View file

@ -134,7 +134,8 @@ namespace BSB.bottypes
protected int last_tested_home_id = -1;
protected long last_tp_attempt_unixtime;
protected bool after_login_fired;
protected bool teleported;
protected long last_reconnect_attempt;
protected bool reconnect_mode;
protected string last_attempted_teleport_region = "";
@ -185,10 +186,7 @@ namespace BSB.bottypes
AfterLoginSitDown = false;
}
public void SetTeleported()
{
teleported = true;
}
protected void AvoidSim(string simname)
{