mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-09-15 06:42:25 +02:00
30 lines
767 B
C#
30 lines
767 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using ServerInterfaces;
|
|
|
|
namespace SGO
|
|
{
|
|
public class BasicActorComponent : GameObjectComponent
|
|
{
|
|
IPlayerSession playerSession;
|
|
|
|
public BasicActorComponent()
|
|
{
|
|
family = SS3D_shared.GO.ComponentFamily.Actor;
|
|
}
|
|
|
|
public override void SetParameter(ComponentParameter parameter)
|
|
{
|
|
switch (parameter.MemberName)
|
|
{
|
|
case "playersession":
|
|
if (parameter.ParameterType == typeof(IPlayerSession))
|
|
playerSession = (IPlayerSession)parameter.Parameter;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|