aoaddons 0.2.0

Simple library for creating addons for albion online game in multiple programing languages.
Documentation
#![allow(dead_code)]

use crate::photon_messages;

use super::player::StaticId;

#[derive(Debug, Clone, PartialEq)]
pub struct Player {
    pub id: StaticId,
    pub name: String,
}

#[derive(Debug, Clone, PartialEq)]
pub struct Damage {
    pub source: StaticId,
    pub target: Option<StaticId>,
    pub value: f32,
}

#[derive(Debug, Clone, PartialEq)]
pub struct Fame {
    pub source: StaticId,
    pub value: f32,
}

#[derive(Debug, Clone, PartialEq)]
pub struct Items {
    pub source: StaticId,
    pub value: photon_messages::Items,
}

#[derive(Debug, Clone, PartialEq)]
pub struct Party {
    pub player_names: Vec<String>,
}

#[derive(Debug, Clone, PartialEq)]
pub enum Event {
    MainPlayerAppeared(Player),
    PlayerAppeared(Player),
    DamageDone(Damage),
    HealthReceived(Damage),
    ZoneChange,
    EnterCombat(Player),
    LeaveCombat(Player),
    UpdateFame(Fame),
    UpdateItems(Items),
    UpdateParty(Party),
    ChatSay(String),
}