mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-07-23 19:10:28 +02:00
Reversed all my lua fuckery.
This commit is contained in:
parent
13727caf14
commit
bbd4fcef3b
4 changed files with 49 additions and 116 deletions
|
@ -1,65 +0,0 @@
|
|||
using FFXIVClassic_Map_Server.Actors;
|
||||
using MoonSharp.Interpreter;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace FFXIVClassic_Map_Server.dataobjects
|
||||
{
|
||||
class GameEvent
|
||||
{
|
||||
private string eventName;
|
||||
private uint ownerActorId;
|
||||
private Player playerActor;
|
||||
private Actor ownerActor;
|
||||
private Coroutine coroutine;
|
||||
private uint hashCode;
|
||||
|
||||
public GameEvent(String eventName, Player player, Actor owner)
|
||||
{
|
||||
this.eventName = eventName;
|
||||
this.playerActor = player;
|
||||
this.ownerActor = owner;
|
||||
this.ownerActorId = owner.actorId;
|
||||
hashCode = (uint)new Tuple<uint, uint, string>(player.actorId, owner.actorId, eventName).GetHashCode();
|
||||
}
|
||||
|
||||
public string GetEventName()
|
||||
{
|
||||
return eventName;
|
||||
}
|
||||
|
||||
public uint GetOwnerActorId()
|
||||
{
|
||||
return ownerActorId;
|
||||
}
|
||||
|
||||
public Player GetPlayerActor()
|
||||
{
|
||||
return playerActor;
|
||||
}
|
||||
|
||||
public Actor GetOwnerActor()
|
||||
{
|
||||
return ownerActor;
|
||||
}
|
||||
|
||||
public Coroutine GetCoroutine()
|
||||
{
|
||||
return coroutine;
|
||||
}
|
||||
|
||||
public void SetCoroutine(Coroutine coroutine)
|
||||
{
|
||||
this.coroutine = coroutine;
|
||||
}
|
||||
|
||||
public uint GetUniqueEventId()
|
||||
{
|
||||
return hashCode;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue