示例#1
0
 public override void Initialize(Bot Bot)
 {
     mSelfBot                = Bot;
     mCurrentAction          = PetBotAction.Idle;
     mActionStartedTimestamp = UnixTimestamp.GetCurrent();
     mPossibleTricks         = PetDataManager.GetTricksForType(Bot.PetData.Type);
 }
示例#2
0
文件: PetBot.cs 项目: DaimOwns/ProRP
 public override void Initialize(Bot Bot)
 {
     mSelfBot = Bot;
     mCurrentAction = PetBotAction.Idle;
     mActionStartedTimestamp = UnixTimestamp.GetCurrent();
     mPossibleTricks = PetDataManager.GetTricksForType(Bot.PetData.Type);
 }
示例#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");
        }
示例#4
0
文件: PetBot.cs 项目: DaimOwns/ProRP
        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");
        }
示例#5
0
 private void ChangeAction(PetBotAction Action)
 {
     mCurrentAction          = Action;
     mActionStartedTimestamp = UnixTimestamp.GetCurrent();
     mActionData             = 0;
 }
示例#6
0
文件: PetBot.cs 项目: DaimOwns/ProRP
 private void ChangeAction(PetBotAction Action)
 {
     mCurrentAction = Action;
     mActionStartedTimestamp = UnixTimestamp.GetCurrent();
     mActionData = 0;
 }