Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- public class Hello : OFS.Extension
- {
- private string message = "Hello from this OFS extension.";
- private int one = 1;
- private int two = 2;
- public Hello()
- {
- }
- public override void Init()
- {
- Console.WriteLine("Init");
- }
- public override void Run()
- {
- Console.WriteLine("Run");
- foreach(var script in Ctx.Scripts)
- {
- int pos = 0;
- foreach(var action in script.actions)
- {
- pos += 10;
- pos %= 100;
- action.pos = pos;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement