Add changes

This commit is contained in:
hydrant
2020-03-12 19:19:42 +01:00
parent 06c2a2092f
commit 5e3bc39275
43 changed files with 390 additions and 642 deletions

View File

@@ -6,6 +6,8 @@ namespace ReallifeGamemode.Server.Core.API
{
public struct Color
{
public static Color White => new Color(255, 255, 255);
public int R { get; set; }
public int G { get; set; }

View File

@@ -15,6 +15,8 @@ namespace ReallifeGamemode.Server.Core.API
IMarkerAPI Marker { get; }
ITextLabelAPI TextLabel { get; }
void DisableDefaultCommandErrorMessages();
void DisableDefaultSpawnBehavior();

View File

@@ -6,7 +6,7 @@ namespace ReallifeGamemode.Server.Core.API
{
public interface IColShape : IEntity
{
delegate void ColShapeEvent(IColShape colShape, IEntity entity);
delegate void ColShapeEvent(IColShape colShape, IPlayer entity);
event ColShapeEvent OnEntityEnter;
event ColShapeEvent OnEntityExit;

View File

@@ -0,0 +1,11 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace ReallifeGamemode.Server.Core.API
{
public interface ITextLabel : IEntity
{
string Text { get; set; }
}
}

View File

@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Text;
using ReallifeGamemode.Server.Types;
namespace ReallifeGamemode.Server.Core.API
{
public interface ITextLabelAPI
{
ITextLabel CreateTextLabel(string text, Position position, float range, float size, Font font, Color color);
}
}