mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-09 05:54:50 +02:00
Added bazaar scripts and missing class file.
This commit is contained in:
parent
c0312079ef
commit
0cb2fe1a68
7 changed files with 169 additions and 5 deletions
65
FFXIVClassic Map Server/dataobjects/GameEvent.cs
Normal file
65
FFXIVClassic Map Server/dataobjects/GameEvent.cs
Normal file
|
@ -0,0 +1,65 @@
|
|||
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