public override void Initialize(Bot Bot) { mSelfBot = Bot; mCurrentAction = PetBotAction.Idle; mActionStartedTimestamp = UnixTimestamp.GetCurrent(); mPossibleTricks = PetDataManager.GetTricksForType(Bot.PetData.Type); }
public override void OnSelfEnterRoom(RoomInstance Instance) { mSelfActor = Instance.GetActorByReferenceId(mSelfBot.Id, RoomActorType.AiBot); if (mSelfActor == null) { return; } mCurrentAction = PetBotAction.Idle; mActionStartedTimestamp = UnixTimestamp.GetCurrent(); mGstTimestamp = UnixTimestamp.GetCurrent(); RespondToEvent("SEE_OWNER"); }
private void ChangeAction(PetBotAction Action) { mCurrentAction = Action; mActionStartedTimestamp = UnixTimestamp.GetCurrent(); mActionData = 0; }