mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-05-20 08:26:59 -04:00
added pool/spawn/genus mod loading
- moved ai helper classes to own folder
This commit is contained in:
@@ -0,0 +1,57 @@
|
||||
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;
|
||||
using FFXIVClassic_Map_Server.lua;
|
||||
|
||||
namespace FFXIVClassic_Map_Server.actors.chara.ai
|
||||
{
|
||||
class Action
|
||||
{
|
||||
public DateTime startTime;
|
||||
public uint durationMs;
|
||||
public bool checkState;
|
||||
// todo: lua function
|
||||
LuaScript 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)
|
||||
{
|
||||
this.owner = owner;
|
||||
actionQueue = new Queue<Action>();
|
||||
timerQueue = new Queue<Action>();
|
||||
}
|
||||
|
||||
public void PushAction(Action action)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void Update(DateTime tick)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void HandleAction(Action action)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void CheckAction(DateTime tick)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user