haus system auf core geändert
This commit is contained in:
@@ -17,6 +17,8 @@ namespace ReallifeGamemode.Server.Core.API
|
||||
|
||||
ITextLabelAPI TextLabel { get; }
|
||||
|
||||
IBlipAPI Blip { get; }
|
||||
|
||||
void DisableDefaultCommandErrorMessages();
|
||||
|
||||
void DisableDefaultSpawnBehavior();
|
||||
@@ -28,5 +30,7 @@ namespace ReallifeGamemode.Server.Core.API
|
||||
void SetTime(int hour, int minute, int second);
|
||||
|
||||
void TriggerClientEventForAll(string eventName, params object[] args);
|
||||
|
||||
TEntity ToEntity<TEntity>(ushort handle) where TEntity : class, IEntity;
|
||||
}
|
||||
}
|
||||
|
||||
10
ReallifeGamemode.Server.Core.API/IBlip.cs
Normal file
10
ReallifeGamemode.Server.Core.API/IBlip.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace ReallifeGamemode.Server.Core.API
|
||||
{
|
||||
public interface IBlip : IEntity
|
||||
{
|
||||
}
|
||||
}
|
||||
11
ReallifeGamemode.Server.Core.API/IBlipAPI.cs
Normal file
11
ReallifeGamemode.Server.Core.API/IBlipAPI.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace ReallifeGamemode.Server.Core.API
|
||||
{
|
||||
public interface IBlipAPI
|
||||
{
|
||||
IBlip CreateBlip(uint sprite, Position position, string name, byte color, byte alpha, float scale, float drawDistance, bool shortRange);
|
||||
}
|
||||
}
|
||||
@@ -12,6 +12,8 @@ namespace ReallifeGamemode.Server.Core.API
|
||||
|
||||
double Heading { get; set; }
|
||||
|
||||
uint Dimension { get; set; }
|
||||
|
||||
void Remove();
|
||||
|
||||
void SetSharedData<T>(string key, T data);
|
||||
|
||||
@@ -22,7 +22,19 @@ namespace ReallifeGamemode.Server.Core.API
|
||||
|
||||
VehicleSeat VehicleSeat { get; }
|
||||
|
||||
void SendMessage(string message, ChatPrefix prefix = ChatPrefix.None) => SendRawMessage(prefix.GetValue() + message);
|
||||
void SendMessage(string message, ChatPrefix prefix = ChatPrefix.None)
|
||||
{
|
||||
if (!message.EndsWith("!") || !message.EndsWith(".") || !message.EndsWith("?"))
|
||||
{
|
||||
message += prefix switch
|
||||
{
|
||||
ChatPrefix.Error => "!",
|
||||
ChatPrefix.Usage => string.Empty,
|
||||
_ => ".",
|
||||
};
|
||||
}
|
||||
SendRawMessage(prefix.GetValue() + message);
|
||||
}
|
||||
|
||||
void SendRawMessage(string message);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user