Aggiungere i file di progetto.

This commit is contained in:
AlessandroCH
2025-03-07 20:49:49 +01:00
commit f0855b9589
214 changed files with 270213 additions and 0 deletions

View 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);
}
}
}