Exemple #1
0
 public override void Initialize(Bot Bot)
 {
     mSelfBot                = Bot;
     mCurrentAction          = PetBotAction.Idle;
     mActionStartedTimestamp = UnixTimestamp.GetCurrent();
     mPossibleTricks         = PetDataManager.GetTricksForType(Bot.PetData.Type);
 }
Exemple #2
0
 public override void Initialize(Bot Bot)
 {
     mSelfBot = Bot;
     mCurrentAction = PetBotAction.Idle;
     mActionStartedTimestamp = UnixTimestamp.GetCurrent();
     mPossibleTricks = PetDataManager.GetTricksForType(Bot.PetData.Type);
 }
Exemple #3
0
        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");
        }
Exemple #4
0
        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");
        }
Exemple #5
0
 private void ChangeAction(PetBotAction Action)
 {
     mCurrentAction          = Action;
     mActionStartedTimestamp = UnixTimestamp.GetCurrent();
     mActionData             = 0;
 }
Exemple #6
0
 private void ChangeAction(PetBotAction Action)
 {
     mCurrentAction = Action;
     mActionStartedTimestamp = UnixTimestamp.GetCurrent();
     mActionData = 0;
 }