mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-07-24 03:20:30 +02:00
added some more ai stubs
- created mob class - added pathfind and targetfind helper classes (todo: actually add stuff to them) - added action queue helper class (todo: add shit to it)
This commit is contained in:
parent
04890660c0
commit
3bcaa4cc3e
15 changed files with 376 additions and 8 deletions
49
FFXIVClassic Map Server/actors/chara/ai/ActionQueue.cs
Normal file
49
FFXIVClassic Map Server/actors/chara/ai/ActionQueue.cs
Normal file
|
@ -0,0 +1,49 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using FFXIVClassic_Map_Server.Actors;
|
||||
using MoonSharp;
|
||||
using MoonSharp.Interpreter;
|
||||
|
||||
namespace FFXIVClassic_Map_Server.actors.chara.ai
|
||||
{
|
||||
class Action
|
||||
{
|
||||
public DateTime startTime;
|
||||
public uint durationMs;
|
||||
public bool checkState;
|
||||
// todo: lua function
|
||||
Script script;
|
||||
}
|
||||
class ActionQueue
|
||||
{
|
||||
private Character owner;
|
||||
private Queue<Action> actionQueue;
|
||||
private Queue<Action> timerQueue;
|
||||
|
||||
public bool IsEmpty { get { return actionQueue.Count > 0 || timerQueue.Count > 0; } }
|
||||
|
||||
public ActionQueue(Character owner)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void PushAction(Action action)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void Update(DateTime tick)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void HandleAction(Action action)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue