private static void RelicMaker_OnAvatarSpawned(object sender, UnderModAPI.Events.Args.AvatarEventArgs e) { API.instance.GetLogger().Alert("By royal decree, this peasant shall be known as 'bwdy'."); Thor.SimulationPlayer av = e.AvatarInstance.GetSimulationPlayer() as Thor.SimulationPlayer; av.Avatar.name = "bwdy"; Thor.GameData.Instance.SetPeonName("bwdy"); }
internal static void DestroyAvatar(Thor.SimulationPlayer __instance) { //called when an avatar is destroyed. oddly, they use this to roll new avatar details, in addition to avatar spawning. API.instance.GetEvents().AvatarDestroyed(__instance); }
internal static void SpawnAvatar(Thor.SimulationPlayer __instance) { //called when a game is loaded, and when a new avatar is spawned after death API.instance.GetEvents().AvatarSpawned(__instance); }
public AvatarInstance(Thor.SimulationPlayer instance) { avatar = instance; }