mirror of
https://git.muiegratis.online/suikoakari/Campofinale
synced 2025-12-15 02:54:35 +01:00
Aggiungere i file di progetto.
This commit is contained in:
58
Campofinale/Game/Entities/Entity.cs
Normal file
58
Campofinale/Game/Entities/Entity.cs
Normal file
@@ -0,0 +1,58 @@
|
||||
using Campofinale.Resource;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using static Campofinale.Resource.ResourceManager;
|
||||
using static Campofinale.Resource.ResourceManager.LevelScene.LevelData;
|
||||
|
||||
namespace Campofinale.Game.Entities
|
||||
{
|
||||
public class Entity
|
||||
{
|
||||
public ulong guid;
|
||||
public int level;
|
||||
public ulong worldOwner;
|
||||
public double curHp;
|
||||
public ulong levelLogicId;
|
||||
public ulong belongLevelScriptId;
|
||||
public int dependencyGroupId;
|
||||
public ObjectType type;
|
||||
public Vector3f Position=new();
|
||||
public Vector3f Rotation = new();
|
||||
public Vector3f BornPos=new();
|
||||
public Vector3f BornRot=new();
|
||||
public List<ParamKeyValue> properties=new();
|
||||
public int sceneNumId;
|
||||
public bool spawned = false;
|
||||
public Entity()
|
||||
{
|
||||
|
||||
}
|
||||
public Entity(ulong guid, int level, ulong worldOwner,int scene)
|
||||
{
|
||||
this.guid = guid;
|
||||
this.level = level;
|
||||
this.worldOwner = worldOwner;
|
||||
this.sceneNumId = scene;
|
||||
}
|
||||
public virtual void Damage(double dmg)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public virtual void Heal(double heal)
|
||||
{
|
||||
|
||||
}
|
||||
public virtual bool Interact(string eventName, Google.Protobuf.Collections.MapField<string, DynamicParameter> properties)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
public Player GetOwner()
|
||||
{
|
||||
return Server.clients.Find(c => c.roleId == worldOwner);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user