Esempio n. 1
0
 public PlayerAI(float3 pos, float3 rot, ulong code, EntityHandler_Server handler)
 {
     this.Construct();
     this.SetPosition(pos, rot);
     this.Install(EntityHitbox.PLAYER);
     this.SetHandler(handler);
     this.playerCode = code;
 }
Esempio n. 2
0
    public DroppedItemAI(float3 pos, float3 rot, float3 move, ulong code, ushort itemCode, byte amount, ulong playerCode, EntityHandler_Server handler, ChunkLoader_Server cl)
    {
        this.Construct();
        this.SetPosition(pos, rot);
        this.Install(EntityHitbox.ITEM);
        this.SetChunkloader(cl);
        this.SetHandler(handler);
        this.entityCode        = code;
        this.CREATED_BY_PLAYER = true;
        this.playerCode        = playerCode;
        this.its = new ItemStack((ItemID)itemCode, amount);

        this.Install(new ProjectileTerrainVision(cl));
        this.Install(new ItemBehaviour(pos, rot, move));
    }
Esempio n. 3
0
 protected void SetHandler(EntityHandler_Server handler)
 {
     this.entityHandler = handler;
 }