Skip to content

Commit

Permalink
Update basicTypes.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Captian-obvious authored Nov 22, 2023
1 parent 864dc17 commit 99164b2
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion basicTypes.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
import Buffer
import base64,Buffer,errorHandler,os,pyrbxm,struct,sys,requests,robloxapi

def conditionalSet(condition,val1,val2):
if ((condition)==True):
return val1
else:
return val2
##endif
##end

def lrotate(n,d):
return (n << d)|(n >> (32 - d))
##end
def rrotate(n,d):
return (n >> d)|(n << (32 - d)) & 0xFFFFFFFF
##end

def rbxF32(x):
x=rrotate(x, 1)
return conditionalSet(x % 2 == 0,x / 2,-(x + 1) / 2)
##end
def String(buffer):
return buffer.read(buffer.readNumber("<I4"))
##end

0 comments on commit 99164b2

Please sign in to comment.