Advertisement
Guest User

Untitled

a guest
Feb 26th, 2021
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.54 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3.  
  4. public class Hello : OFS.Extension
  5. {
  6.     private string message = "Hello from this OFS extension.";
  7.     private int one = 1;
  8.     private int two = 2;
  9.    
  10.     public Hello()
  11.     {
  12.     }
  13.    
  14.     public override void Init()
  15.     {
  16.         Console.WriteLine("Init");
  17.     }
  18.    
  19.     public override void Run()
  20.     {
  21.         Console.WriteLine("Run");
  22.  
  23.         foreach(var script in Ctx.Scripts)
  24.         {
  25.             int pos = 0;
  26.             foreach(var action in script.actions)
  27.             {
  28.                 pos += 10;
  29.                 pos %= 100;
  30.                 action.pos = pos;
  31.             }
  32.         }
  33.     }
  34. }
  35.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement