-
Notifications
You must be signed in to change notification settings - Fork 1
SamplePlugin
jariz edited this page Feb 20, 2013
·
1 revision
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ZombieAPI;
using ZombieAPI.GameObjects;
namespace SamplePlugin
{
public class Plugin: jZmPlugin
{
public string Name
{
get
{
return "SamplePlugin";
}
}
public string Desc
{
get
{
return "Sample plugin to demonstrate jZm plugin architecture";
}
}
public string Author
{
get
{
return "JariZ";
}
}
ZombieAPI.ZombieAPI API;
public void Init(ZombieAPI.ZombieAPI API)
{
this.API = API;
API.WriteLine("SamplePlugin V1 initialized");
API.OnFrame += new OnFrameHandler(API_OnFrame);
}
void API_OnFrame()
{
foreach (Player x in API.GetPlayers())
{
x.Health = 100;
x.Money = 1337;
}
}
}
}