Esempio n. 1
0
 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");
 }
Esempio n. 2
0
 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);
 }
Esempio n. 3
0
 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);
 }
Esempio n. 4
0
 public AvatarInstance(Thor.SimulationPlayer instance)
 {
     avatar = instance;
 }