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